[vlc-commits] demux: adaptive: fix segmentbase subsegments sequence
Francois Cartegnie
git at videolan.org
Fri Nov 27 11:23:13 CET 2020
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Nov 26 21:56:41 2020 +0100| [444c839b2b56b176fee1f84a081e6b39a6b6474f] | committer: Francois Cartegnie
demux: adaptive: fix segmentbase subsegments sequence
Was incremented through set+offset, get
regression/in by a0d053d40295be6c30cbe023a460865ffd3b2f83
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=444c839b2b56b176fee1f84a081e6b39a6b6474f
---
modules/demux/adaptive/playlist/Segment.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/demux/adaptive/playlist/Segment.cpp b/modules/demux/adaptive/playlist/Segment.cpp
index 98023d91c2..a61b0fc188 100644
--- a/modules/demux/adaptive/playlist/Segment.cpp
+++ b/modules/demux/adaptive/playlist/Segment.cpp
@@ -206,8 +206,7 @@ void Segment::addSubSegment(SubSegment *subsegment)
{
/* Use our own sequence number, and since it it now
uneffective, also for next subsegments numbering */
- subsegment->setSequenceNumber(getSequenceNumber());
- setSequenceNumber(getSequenceNumber());
+ subsegment->setSequenceNumber(subsegments.size());
}
subsegments.push_back(subsegment);
}
More information about the vlc-commits
mailing list