[vlc-commits] codec: subsvtt: fix inverted test

Francois Cartegnie git at videolan.org
Fri Jun 14 16:23:45 CEST 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jun 14 16:22:53 2019 +0200| [42a128fa926e0f10112f0c053777237ce97688f0] | committer: Francois Cartegnie

codec: subsvtt: fix inverted test

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=42a128fa926e0f10112f0c053777237ce97688f0
---

 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 8e18edefab..6d5c157b29 100644
--- a/modules/codec/webvtt/subsvtt.c
+++ b/modules/codec/webvtt/subsvtt.c
@@ -1856,7 +1856,7 @@ static void Render( decoder_t *p_dec, vlc_tick_t i_start, vlc_tick_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 );
 
     vlc_tick_t i_substart = i_start;



More information about the vlc-commits mailing list