[vlc-commits] codec: subsvtt: fix inverted test
Francois Cartegnie
git at videolan.org
Fri Jun 14 16:27:02 CEST 2019
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jun 14 16:22:53 2019 +0200| [c55d647f0aa623393dbb60dfa8854d9613e8d737] | committer: Francois Cartegnie
codec: subsvtt: fix inverted test
(cherry picked from commit 42a128fa926e0f10112f0c053777237ce97688f0)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=c55d647f0aa623393dbb60dfa8854d9613e8d737
---
modules/codec/webvtt/subsvtt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/webvtt/subsvtt.c b/modules/codec/webvtt/subsvtt.c
index 29d27d8d7c..27d1d67350 100644
--- a/modules/codec/webvtt/subsvtt.c
+++ b/modules/codec/webvtt/subsvtt.c
@@ -1807,7 +1807,7 @@ static void Render( decoder_t *p_dec, mtime_t i_start, mtime_t i_stop )
vlc_array_init( &timedtags );
GetTimedTags( p_sys->p_root->p_child, i_start, i_stop, &timedtags );
- if( timedtags.i_count == 0 )
+ if( timedtags.i_count )
qsort( timedtags.pp_elems, timedtags.i_count, sizeof(*timedtags.pp_elems), timedtagsArrayCmp );
mtime_t i_substart = i_start;
More information about the vlc-commits
mailing list