[vlc-commits] demux:mkv: simplify the code

Steve Lhomme git at videolan.org
Tue Nov 14 10:55:01 CET 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Mon Nov 13 18:08:40 2017 +0100| [8467e19d1ec3fd6af523c12f787f43d0f32a37d4] | committer: Jean-Baptiste Kempf

demux:mkv: simplify the code

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/demux/mkv/Ebml_parser.cpp | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/modules/demux/mkv/Ebml_parser.cpp b/modules/demux/mkv/Ebml_parser.cpp
index c937a9900d..b6dd6cb76a 100644
--- a/modules/demux/mkv/Ebml_parser.cpp
+++ b/modules/demux/mkv/Ebml_parser.cpp
@@ -155,11 +155,8 @@ EbmlElement *EbmlParser::Get( int n_call )
     }
 
     p_prev = m_el[mi_level];
-    if( m_el[mi_level] )
-    {
-        m_el[mi_level]->SkipData( *m_es, EBML_CONTEXT(m_el[mi_level]) );
-
-    }
+    if( p_prev )
+        p_prev->SkipData( *m_es, EBML_CONTEXT(p_prev) );
 
     // If the parent is a segment, use the segment context when creating children
     // (to prolong their lifetime), otherwise just continue as normal



More information about the vlc-commits mailing list