From 3ebb842388ef7ec9ac88ef8af3749c51ed52707a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Louis-Francis=20Ratt=C3=A9-Boulianne?= Date: Tue, 29 Jan 2013 22:57:36 -0500 Subject: [PATCH] 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. --- ext/smoothstreaming/gstmssdemux.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ext/smoothstreaming/gstmssdemux.c b/ext/smoothstreaming/gstmssdemux.c index c277ed5..34ec651 100644 --- a/ext/smoothstreaming/gstmssdemux.c +++ b/ext/smoothstreaming/gstmssdemux.c @@ -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; -- 2.7.4