[vlc-commits] demux: adaptive: recurse getPlaybackTimeDurationBySegmentNumber

Francois Cartegnie git at videolan.org
Mon Mar 30 16:16:40 CEST 2020


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Mar 16 17:06:04 2020 +0100| [116a38b9c0bc20b349ae7297e1d98e0f798cc288] | committer: Francois Cartegnie

demux: adaptive: recurse getPlaybackTimeDurationBySegmentNumber

(cherry picked from commit 41f5882377b0b87b54d087f61cb632cfb7f70fe1)

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

 modules/demux/adaptive/playlist/SegmentInformation.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/demux/adaptive/playlist/SegmentInformation.cpp b/modules/demux/adaptive/playlist/SegmentInformation.cpp
index 983fa0469f..3e387992d8 100644
--- a/modules/demux/adaptive/playlist/SegmentInformation.cpp
+++ b/modules/demux/adaptive/playlist/SegmentInformation.cpp
@@ -531,6 +531,9 @@ bool SegmentInformation::getPlaybackTimeDurationBySegmentNumber(uint64_t number,
         }
     }
 
+    if(parent)
+        return parent->getPlaybackTimeDurationBySegmentNumber(number, time, duration);
+
     return false;
 }
 



More information about the vlc-commits mailing list