summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2007-03-23 18:27:44 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2007-03-23 18:27:44 +0000
commit9e6edc3eb9a63cd61d54376c06f6e487ab372e51 (patch)
treee641680b72d1cb828c6d64540b7fdd6865bcc0c9
parentb48ece096c1c173406f920f848f8413feb4c77b2 (diff)
If the number of m-lines differs from our number of streams, just warn rather than aborting
-rw-r--r--src/sip-media-session.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sip-media-session.c b/src/sip-media-session.c
index ee1d4ca..2db4f66 100644
--- a/src/sip-media-session.c
+++ b/src/sip-media-session.c
@@ -704,7 +704,11 @@ int sip_media_session_set_remote_info (SIPMediaSession *session, const char* r_s
}
g_assert(media == NULL);
- g_assert(i == priv->streams->len);
+ if (i != priv->streams->len)
+ {
+ g_warning ("There were %u parsed SDP m-lines but we have %u streams - "
+ "is someone failing to comply with RFCs?");
+ }
/* XXX: hmm, this is not the correct place really */
g_object_set (session, "state", JS_STATE_ACTIVE, NULL);