From 213726ca419d37954aa878bd5d751f1f1b3bb01c Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Thu, 30 May 2024 00:32:30 +0300 Subject: [PATCH] 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: --- .../ext/adaptivedemux2/gstadaptivedemux-stream.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-stream.c b/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-stream.c index cabc13d5cd..2556bab869 100644 --- a/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-stream.c +++ b/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-stream.c @@ -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;