mss: always periodically update the manifest taking the new fragments
authorMatthew Waters <matthew@centricular.com>
Fri, 7 Apr 2017 04:42:24 +0000 (14:42 +1000)
committerMatthew Waters <matthew@centricular.com>
Tue, 25 Apr 2017 04:16:15 +0000 (14:16 +1000)
Without this, for streams where the content is stored indefinitely and
can be seeked on, the duration would never increase when in paused or,
until we reached near the end of the currently advertised stream (where
the internal fragment parser would see descriptions of new fragments).

ext/smoothstreaming/gstmssdemux.c
ext/smoothstreaming/gstmssmanifest.c

index 0fdea3b4d21f7e646ef34518aabafea1b0714582..99b1b4724552a7cbda2878445bb1174996a094ab 100644 (file)
@@ -728,5 +728,5 @@ gst_mss_demux_requires_periodical_playlist_update (GstAdaptiveDemux * demux)
 {
   GstMssDemux *mssdemux = GST_MSS_DEMUX_CAST (demux);
 
-  return (!gst_mss_manifest_is_live (mssdemux->manifest));
+  return TRUE;
 }
index 56e151e2d10696ad08f0da1c742174884303dd81..fb1eb0df8b8412d7eafefdbc26134cb333017d87 100644 (file)
@@ -1315,9 +1315,6 @@ gst_mss_stream_reload_fragments (GstMssStream * stream, xmlNodePtr streamIndex)
   guint64 current_gst_time;
   GstMssFragmentListBuilder builder;
 
-  if (stream->has_live_fragments)
-    return;
-
   current_gst_time = gst_mss_stream_get_fragment_gst_timestamp (stream);
 
   gst_mss_fragment_list_builder_init (&builder);