[vlc-commits] adaptive: SegmentList: Fix variable shadowing
Hugo Beauzée-Luyssen
git at videolan.org
Fri Dec 4 10:43:37 UTC 2020
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Dec 3 10:16:21 2020 -0800| [d9f10e44c4d39bfbc3a6022ea96a8b1f4aaf71ac] | committer: Hugo Beauzée-Luyssen
adaptive: SegmentList: Fix variable shadowing
Causing a potential use of uninitialized variable
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d9f10e44c4d39bfbc3a6022ea96a8b1f4aaf71ac
---
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)
{
More information about the vlc-commits
mailing list