[vlc-devel] [PATCH 3/3] adaptive: SegmentList: Fix variable shadowing
Hugo Beauzée-Luyssen
hugo at beauzee.fr
Thu Dec 3 19:44:08 CET 2020
Causing a potential use of uninitialized variable
---
modules/demux/adaptive/playlist/SegmentList.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/demux/adaptive/playlist/SegmentList.cpp b/modules/demux/adaptive/playlist/SegmentList.cpp
index 92d12b56f7..71a60b09ed 100644
--- a/modules/demux/adaptive/playlist/SegmentList.cpp
+++ b/modules/demux/adaptive/playlist/SegmentList.cpp
@@ -178,8 +178,8 @@ bool SegmentList::getPlaybackTimeDurationBySegmentNumber(uint64_t number,
return false;
bool found = false;
- stime_t stime = first->startTime.Get();
- stime_t sduration = 0;
+ stime = first->startTime.Get();
+ sduration = 0;
std::vector<Segment *>::const_iterator it = segments.begin();
for(it = segments.begin(); it != segments.end(); ++it)
{
--
2.29.2
More information about the vlc-devel
mailing list