Commit a336a528 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: subtitle: fix <= first sub seek regression

parent 192c77e4
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment