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:
Louis-Francis Ratté-Boulianne 2013-01-29 22:57:36 -05:00 committed by Thiago Santos
parent 7cb3a367f6
commit 3ebb842388

View file

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