[vlc-commits] demux:mkv: remove dead code
Steve Lhomme
git at videolan.org
Thu Jan 25 13:55:35 CET 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jan 25 13:22:54 2018 +0100| [1a4c3bdf5597295b2609e338f6d6e9f38bf2c1e3] | committer: Steve Lhomme
demux:mkv: remove dead code
We can't get here if we don't have a parser for the segment
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1a4c3bdf5597295b2609e338f6d6e9f38bf2c1e3
---
modules/demux/mkv/matroska_segment.cpp | 3 ---
1 file changed, 3 deletions(-)
diff --git a/modules/demux/mkv/matroska_segment.cpp b/modules/demux/mkv/matroska_segment.cpp
index 3c30ee51a7..533e3891d1 100644
--- a/modules/demux/mkv/matroska_segment.cpp
+++ b/modules/demux/mkv/matroska_segment.cpp
@@ -1289,9 +1289,6 @@ int matroska_segment_c::BlockGet( KaxBlock * & pp_block, KaxSimpleBlock * & pp_s
EbmlElement *el = NULL;
int i_level;
- if ( ep == NULL )
- return VLC_EGENERIC;
-
if( pp_simpleblock != NULL || ((el = ep->Get()) == NULL && pp_block != NULL) )
{
/* Check blocks validity to protect againts broken files */
More information about the vlc-commits
mailing list