From 4994f068d55945ef0c1cf9fc4c349551563b8522 Mon Sep 17 00:00:00 2001 From: Florin Apostol Date: Wed, 11 Nov 2015 16:51:23 +0000 Subject: [PATCH] adaptivedemux: fixed handling errors emitted by uri handler https://bugzilla.gnome.org/show_bug.cgi?id=757947 --- gst-libs/gst/adaptivedemux/gstadaptivedemux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c index 4ec230a3b8..5c3e189c2b 100644 --- a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c +++ b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c @@ -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),