[vlc-commits] demux: adaptive: recurse getPlaybackTimeDurationBySegmentNumber

Francois Cartegnie git at videolan.org
Tue Mar 17 12:42:26 CET 2020


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Mar 16 17:06:04 2020 +0100| [41f5882377b0b87b54d087f61cb632cfb7f70fe1] | committer: Francois Cartegnie

demux: adaptive: recurse getPlaybackTimeDurationBySegmentNumber

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

 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 cbdeeee3d8..889cb8524d 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