From: Louis-Francis Ratté-Boulianne Date: Wed, 30 Jan 2013 03:57:36 +0000 (-0500) Subject: mssdemux: only try to reload the manifest for live streams X-Git-Tag: 1.19.3~507^2~13707 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ebb842388ef7ec9ac88ef8af3749c51ed52707a;p=platform%2Fupstream%2Fgstreamer.git 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. --- diff --git a/ext/smoothstreaming/gstmssdemux.c b/ext/smoothstreaming/gstmssdemux.c index c277ed5ed0..34ec651202 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;