adaptivedemux: fixed handling errors emitted by uri handler
authorFlorin Apostol <florin.apostol@oregan.net>
Wed, 11 Nov 2015 16:51:23 +0000 (16:51 +0000)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 11 Nov 2015 16:56:19 +0000 (17:56 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=757947

gst-libs/gst/adaptivedemux/gstadaptivedemux.c

index 4ec230a..5c3e189 100644 (file)
@@ -745,7 +745,8 @@ gst_adaptive_demux_handle_message (GstBin * bin, GstMessage * msg)
 
       for (iter = demux->streams; iter; iter = g_list_next (iter)) {
         stream = iter->data;
-        if (GST_OBJECT_CAST (stream->src) == GST_MESSAGE_SRC (msg)) {
+        if (gst_object_has_as_ancestor (GST_MESSAGE_SRC (msg),
+                GST_OBJECT_CAST (stream->src))) {
           gst_message_parse_error (msg, &err, &debug);
 
           GST_WARNING_OBJECT (GST_ADAPTIVE_DEMUX_STREAM_PAD (stream),