vlc | branch: master | Francois Cartegnie <[email protected]> | 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;
 

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to