mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
adaptivedemux: Convert premature EOS on non-exposed pads to ERROR
If we need to send EOS on a pad that hasn't prerolled, generate an error on the bus instead, otherwise the app will have no idea. Fixes the HLS testFragmentNotFound test, which is waiting for either EOS or an error.
This commit is contained in:
parent
69d2f80954
commit
dc56472777
1 changed files with 7 additions and 1 deletions
|
@ -3627,7 +3627,13 @@ gst_adaptive_demux_stream_download_loop (GstAdaptiveDemuxStream * stream)
|
|||
|
||||
end_of_manifest:
|
||||
if (G_UNLIKELY (ret == GST_FLOW_EOS)) {
|
||||
if (GST_OBJECT_PARENT (stream->pad) != NULL) {
|
||||
GST_DEBUG_OBJECT (stream->src, "Pushing EOS on pad");
|
||||
gst_adaptive_demux_stream_push_event (stream, gst_event_new_eos ());
|
||||
} else {
|
||||
GST_ERROR_OBJECT (demux, "Can't push EOS on non-exposed pad");
|
||||
goto download_error;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
Loading…
Reference in a new issue