mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
adaptivedemux2: Post a bus error when failing to start download
If a download completely fails to start, due to malformed URI or so, post a bus error instead of just stalling out with no indication why. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6969>
This commit is contained in:
parent
f2a18ab277
commit
213726ca41
1 changed files with 3 additions and 0 deletions
|
@ -1969,6 +1969,9 @@ gst_adaptive_demux2_stream_load_a_fragment (GstAdaptiveDemux2Stream * stream)
|
|||
if (gst_adaptive_demux2_stream_download_fragment (stream) != GST_FLOW_OK) {
|
||||
GST_ERROR_OBJECT (demux,
|
||||
"Failed to begin fragment download for stream %p", stream);
|
||||
GST_ELEMENT_ERROR (demux, STREAM, DEMUX,
|
||||
(_("Failed to initiate fragment download.")),
|
||||
("An error happened when getting fragment URL"));
|
||||
return FALSE;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue