demux: mkv: fix previous type fix
authorFrancois Cartegnie <fcvlcdev@free.fr>
Sat, 27 Sep 2014 16:12:55 +0000 (18:12 +0200)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Sat, 27 Sep 2014 16:12:55 +0000 (18:12 +0200)
first segment is always 0, not an undefined value
regression introduced by aaebd49a151fae2fd86242dadd3e6e93cbb41e3b
instead of removing the tautology

modules/demux/mkv/virtual_segment.hpp

index 5e659cd..ed40e59 100644 (file)
@@ -121,7 +121,7 @@ public:
 
     inline virtual_edition_c * CurrentEdition()
     {
-        if( i_current_edition > 0 && i_current_edition < editions.size() )
+        if( i_current_edition < editions.size() )
             return editions[i_current_edition];
         return NULL;
     }