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

demux: subtitle: fix <= first sub seek regression

(cherry picked from commit a336a5281a6ef6f5fa43671815adf5fbb7a6cff1)

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

 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 d8c97079b6..18508e3aea 100644
--- a/modules/demux/subtitle.c
+++ b/modules/demux/subtitle.c
@@ -789,7 +789,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