vlc | branch: master | Francois Cartegnie <fcvlc...@free.fr> | Thu Feb 22 
22:13:00 2018 +0100| [a336a5281a6ef6f5fa43671815adf5fbb7a6cff1] | committer: 
Francois Cartegnie

demux: subtitle: fix <= first sub seek regression

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

 modules/demux/subtitle.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/subtitle.c b/modules/demux/subtitle.c
index 5b8493692d..ea73c5fe56 100644
--- a/modules/demux/subtitle.c
+++ b/modules/demux/subtitle.c
@@ -788,7 +788,7 @@ static int Control( demux_t *p_demux, int i_query, va_list 
args )
             p_sys->i_next_demux_date = i64;
             for( size_t i = 0; i < p_sys->subtitles.i_count; i++ )
             {
-                if( p_sys->subtitles.p_array[i].i_start > i64 )
+                if( p_sys->subtitles.p_array[i].i_start > i64 && i > 0 )
                     break;
                 p_sys->subtitles.i_current = i;
             }

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to