rtpssrcdemux: Unknown SSRC is not fatal
authorPascal Buhler <pascal.buhler@tandberg.com>
Tue, 24 Aug 2010 11:57:55 +0000 (13:57 +0200)
committerOlivier CrĂȘte <olivier.crete@collabora.co.uk>
Mon, 11 Apr 2011 21:37:58 +0000 (17:37 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=646966

gst/rtpmanager/gstrtpssrcdemux.c

index 9ce30eb49aaf561f1b066266b34d07465d00056d..2688775e7180a44aef64978ee71b2f4af527b6f7 100644 (file)
@@ -383,8 +383,10 @@ gst_rtp_ssrc_demux_clear_ssrc (GstRtpSsrcDemux * demux, guint32 ssrc)
 
   GST_PAD_LOCK (demux);
   dpad = find_demux_pad_for_ssrc (demux, ssrc);
-  if (dpad == NULL)
+  if (dpad == NULL) {
+    GST_PAD_UNLOCK (demux);
     goto unknown_pad;
+  }
 
   GST_DEBUG_OBJECT (demux, "clearing pad for SSRC %08x", ssrc);
 
@@ -408,7 +410,7 @@ gst_rtp_ssrc_demux_clear_ssrc (GstRtpSsrcDemux * demux, guint32 ssrc)
   /* ERRORS */
 unknown_pad:
   {
-    g_warning ("unknown SSRC %08x", ssrc);
+    GST_WARNING_OBJECT (demux, "unknown SSRC %08x", ssrc);
     return;
   }
 }