[vlc-devel] [PATCH 1/7] demux:mkv: simplify the code

Steve Lhomme robux4 at videolabs.io
Mon Nov 13 18:08:40 CET 2017


---
 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
-- 
2.14.2



More information about the vlc-devel mailing list