From ef466b46d3353aa56b25663b74021e37c8bbcc82 Mon Sep 17 00:00:00 2001 From: Florin Apostol Date: Wed, 7 Oct 2015 23:20:51 +0100 Subject: [PATCH] adaptivedemux: return error if src element cannot start https://bugzilla.gnome.org/show_bug.cgi?id=756209 --- gst-libs/gst/adaptivedemux/gstadaptivedemux.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c index 5ce31be6c2..8f463557a3 100644 --- a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c +++ b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c @@ -2261,7 +2261,12 @@ gst_adaptive_demux_stream_download_uri (GstAdaptiveDemux * demux, GST_MANIFEST_UNLOCK (demux); - gst_element_sync_state_with_parent (stream->src); + if (!gst_element_sync_state_with_parent (stream->src)) { + GST_WARNING_OBJECT (demux, "Could not sync state for src element"); + GST_MANIFEST_LOCK (demux); + ret = stream->last_ret = GST_FLOW_ERROR; + return ret; + } /* wait for the fragment to be completely downloaded */ GST_DEBUG_OBJECT (stream->pad,