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:
Jan Schmidt 2024-05-30 00:32:30 +03:00 committed by GStreamer Marge Bot
parent f2a18ab277
commit 213726ca41

View file

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