adaptivedemux: return error if src element cannot start

https://bugzilla.gnome.org/show_bug.cgi?id=756209
This commit is contained in:
Florin Apostol 2015-10-07 23:20:51 +01:00 committed by Vincent Penquerc'h
parent 519165e461
commit ef466b46d3

View file

@ -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,