[vlc-commits] demux: mkv: don't use the segment UID if it's NULL
Steve Lhomme
git at videolan.org
Tue May 29 11:05:36 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue May 29 11:05:29 2018 +0200| [920b3937dc554bf1b2efef125fb1aff9d2c61245] | committer: Steve Lhomme
demux: mkv: don't use the segment UID if it's NULL
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=920b3937dc554bf1b2efef125fb1aff9d2c61245
---
modules/demux/mkv/demux.cpp | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/modules/demux/mkv/demux.cpp b/modules/demux/mkv/demux.cpp
index fc6cab349e..b0e80a19b4 100644
--- a/modules/demux/mkv/demux.cpp
+++ b/modules/demux/mkv/demux.cpp
@@ -510,9 +510,8 @@ bool demux_sys_t::AnalyseAllSegmentsFound( demux_t *p_demux, matroska_stream_c *
p_segment1->Preload();
- b_keep_segment = (FindSegment( *p_segment1->p_segment_uid ) == NULL);
-
- if ( b_keep_segment || !p_segment1->p_segment_uid )
+ if ( !p_segment1->p_segment_uid ||
+ (b_keep_segment = (FindSegment( *p_segment1->p_segment_uid ) == NULL)))
{
opened_segments.push_back( p_segment1 );
b_keep_stream = true;
More information about the vlc-commits
mailing list