mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 13:48:55 +00:00
adaptivedemux: return error if src element cannot start
https://bugzilla.gnome.org/show_bug.cgi?id=756209
This commit is contained in:
parent
519165e461
commit
ef466b46d3
1 changed files with 6 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue