[vlc-commits] demux: smooth: set timeshift buffer

Francois Cartegnie git at videolan.org
Fri May 24 23:43:19 CEST 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu May 23 11:44:57 2019 +0200| [dad3c2d7d702cbe4e0454858bb4090fd61e98c3f] | committer: Francois Cartegnie

demux: smooth: set timeshift buffer

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dad3c2d7d702cbe4e0454858bb4090fd61e98c3f
---

 modules/demux/smooth/playlist/Parser.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/demux/smooth/playlist/Parser.cpp b/modules/demux/smooth/playlist/Parser.cpp
index ffbe9a63e5..188c0bef9b 100644
--- a/modules/demux/smooth/playlist/Parser.cpp
+++ b/modules/demux/smooth/playlist/Parser.cpp
@@ -272,6 +272,12 @@ Manifest * ManifestParser::parse()
         manifest->duration.Set(manifest->getTimescale().ToTime(time));
     }
 
+    if(root->hasAttribute("DVRWindowLength"))
+    {
+        stime_t time = Integer<stime_t>(root->getAttributeValue("DVRWindowLength"));
+        manifest->timeShiftBufferDepth.Set(manifest->getTimescale().ToTime(time));
+    }
+
     if(root->hasAttribute("IsLive") && root->getAttributeValue("IsLive") == "TRUE")
         manifest->b_live = true;
 



More information about the vlc-commits mailing list