Commit fc3a1cf2 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

mkv: only use percentage of duration seeking when we have an seeking cues.

parent 1ba08018
......@@ -3467,7 +3467,7 @@ static void Seek( demux_t *p_demux, mtime_t i_date, double f_percent, chapter_it
/* seek without index or without date */
if( f_percent >= 0 && (config_GetInt( p_demux, "mkv-seek-percent" ) || !p_segment->b_cues || i_date < 0 ))
{
if (p_sys->f_duration >= 0)
if( p_sys->f_duration >= 0 && p_segment->b_cues )
{
i_date = int64_t( f_percent * p_sys->f_duration * 1000.0 );
}
......
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