mkv:matroska_segment: handle track init failure
authorSteve Lhomme <robUx4@videolabs.io>
Mon, 31 Jul 2017 13:02:56 +0000 (15:02 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 31 Jul 2017 13:16:55 +0000 (15:16 +0200)
commita90e2f04f9e7f000b68bffd1bb1ab1fd173d52ce
treee1eb76b2705c7cf60b1ef0a28cfa20992e593d24
parent61b1017795a8e2b2f922bedc7a4129150c8aee6c
mkv:matroska_segment: handle track init failure

We should not use a track that failed to be initialized properly.
The logic of the return value is inverted to be more readable. Before
it would never fail anyway.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/demux/mkv/matroska_segment.hpp
modules/demux/mkv/matroska_segment_parse.cpp