[vlc-commits] demux: mkv: fix previous type fix
Francois Cartegnie
git at videolan.org
Sat Sep 27 18:16:30 CEST 2014
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat Sep 27 18:12:55 2014 +0200| [2ca410382c2ac6443d99700a7e4399e0af591076] | committer: Francois Cartegnie
demux: mkv: fix previous type fix
first segment is always 0, not an undefined value
regression introduced by aaebd49a151fae2fd86242dadd3e6e93cbb41e3b
instead of removing the tautology
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2ca410382c2ac6443d99700a7e4399e0af591076
---
modules/demux/mkv/virtual_segment.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/mkv/virtual_segment.hpp b/modules/demux/mkv/virtual_segment.hpp
index 5e659cd..ed40e59 100644
--- a/modules/demux/mkv/virtual_segment.hpp
+++ b/modules/demux/mkv/virtual_segment.hpp
@@ -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;
}
More information about the vlc-commits
mailing list