[vlc-devel] [PATCH] demux: mkv: remove useless temporary variable
Zhao Zhili
quinkblack at foxmail.com
Tue May 29 12:14:13 CEST 2018
---
modules/demux/mkv/demux.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/demux/mkv/demux.cpp b/modules/demux/mkv/demux.cpp
index b0e80a1..014e0b1 100644
--- a/modules/demux/mkv/demux.cpp
+++ b/modules/demux/mkv/demux.cpp
@@ -454,7 +454,7 @@ bool demux_sys_t::AnalyseAllSegmentsFound( demux_t *p_demux, matroska_stream_c *
{
int i_upper_lvl = 0;
EbmlElement *p_l0;
- bool b_keep_stream = false, b_keep_segment = false;
+ bool b_keep_stream = false;
/* verify the EBML Header... it shouldn't be bigger than 1kB */
p_l0 = p_stream1->estream.FindNextID(EBML_INFO(EbmlHead), 1024);
@@ -511,7 +511,7 @@ bool demux_sys_t::AnalyseAllSegmentsFound( demux_t *p_demux, matroska_stream_c *
p_segment1->Preload();
if ( !p_segment1->p_segment_uid ||
- (b_keep_segment = (FindSegment( *p_segment1->p_segment_uid ) == NULL)))
+ FindSegment( *p_segment1->p_segment_uid ) == NULL)
{
opened_segments.push_back( p_segment1 );
b_keep_stream = true;
--
2.9.5
More information about the vlc-devel
mailing list