[vlc-commits] demux: adaptative: add timeline pruning by number
Francois Cartegnie
git at videolan.org
Fri Oct 30 21:19:39 CET 2015
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Oct 28 19:49:11 2015 +0100| [d3aa3dd53cc0b4958bbd83104c01800fd510ef13] | committer: Francois Cartegnie
demux: adaptative: add timeline pruning by number
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d3aa3dd53cc0b4958bbd83104c01800fd510ef13
---
modules/demux/adaptative/playlist/SegmentInformation.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/demux/adaptative/playlist/SegmentInformation.cpp b/modules/demux/adaptative/playlist/SegmentInformation.cpp
index b7fc09d..70c1a74 100644
--- a/modules/demux/adaptative/playlist/SegmentInformation.cpp
+++ b/modules/demux/adaptative/playlist/SegmentInformation.cpp
@@ -380,6 +380,9 @@ void SegmentInformation::pruneBySegmentNumber(uint64_t num)
if(segmentList)
segmentList->pruneBySegmentNumber(num);
+ if(mediaSegmentTemplate && mediaSegmentTemplate->segmentTimeline.Get())
+ mediaSegmentTemplate->segmentTimeline.Get()->pruneBySequenceNumber(num);
+
for(size_t i=0; i<childs.size(); i++)
childs.at(i)->pruneBySegmentNumber(num);
}
More information about the vlc-commits
mailing list