[vlc-commits] demux: mkv: remove useless temporary variable

Zhao Zhili git at videolan.org
Wed May 30 21:01:15 CEST 2018


vlc | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Tue May 29 18:14:13 2018 +0800| [ad00299b128285dc5e32476775640cddce8c8e16] | committer: Rémi Denis-Courmont

demux: mkv: remove useless temporary variable

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ad00299b128285dc5e32476775640cddce8c8e16
---

 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 b0e80a19b4..014e0b108e 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;



More information about the vlc-commits mailing list