diff options
author | Matthew Waters <matthew@centricular.com> | 2017-04-07 14:42:24 +1000 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2017-04-25 14:16:15 +1000 |
commit | 5199aa60d5fd11c70553801b24f37e56db2655cd (patch) | |
tree | 1d85aa5e1e56648c1c0e92a31c35ca295f1fe40d | |
parent | 80903beae19a5e010a3ef93a6a4fee473b8b6d0b (diff) | |
download | gstreamer-plugins-bad-5199aa60d5fd11c70553801b24f37e56db2655cd.tar.gz |
mss: always periodically update the manifest taking the new fragments
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).
-rw-r--r-- | ext/smoothstreaming/gstmssdemux.c | 2 | ||||
-rw-r--r-- | ext/smoothstreaming/gstmssmanifest.c | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/ext/smoothstreaming/gstmssdemux.c b/ext/smoothstreaming/gstmssdemux.c index 0fdea3b4d..99b1b4724 100644 --- a/ext/smoothstreaming/gstmssdemux.c +++ b/ext/smoothstreaming/gstmssdemux.c @@ -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; } diff --git a/ext/smoothstreaming/gstmssmanifest.c b/ext/smoothstreaming/gstmssmanifest.c index 56e151e2d..fb1eb0df8 100644 --- a/ext/smoothstreaming/gstmssmanifest.c +++ b/ext/smoothstreaming/gstmssmanifest.c @@ -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); |