mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
mssdemux: only try to reload the manifest for live streams
There is no way to know if a live stream is really finished, so try to reload the manifest and check if there are more fragments to download. Else just let know it's the EOS.
This commit is contained in:
parent
7cb3a367f6
commit
3ebb842388
1 changed files with 4 additions and 2 deletions
|
@ -1001,8 +1001,10 @@ gst_mss_demux_stream_download_fragment (GstMssDemuxStream * stream,
|
|||
case GST_FLOW_OK:
|
||||
break; /* all is good, let's go */
|
||||
case GST_FLOW_UNEXPECTED: /* EOS */
|
||||
gst_mss_demux_reload_manifest (mssdemux);
|
||||
return GST_FLOW_OK;
|
||||
if (gst_mss_manifest_is_live (mssdemux->manifest)) {
|
||||
gst_mss_demux_reload_manifest (mssdemux);
|
||||
return GST_FLOW_OK;
|
||||
}
|
||||
return GST_FLOW_UNEXPECTED;
|
||||
case GST_FLOW_ERROR:
|
||||
goto error;
|
||||
|
|
Loading…
Reference in a new issue