Commit 1b41c8ea authored by Filip Roséen's avatar Filip Roséen Committed by Jean-Baptiste Kempf

mkv: tweaked diagnostic when seeking

Outputting the percentage when we do not have any (-1.f) is of no use,
this patch properly makes use diagnose what we actually have (either a
fixed location, or the percentage).
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 4f654588
......@@ -441,7 +441,9 @@ static void Seek( demux_t *p_demux, mtime_t i_mk_date, double f_percent, virtual
matroska_segment_c *p_segment = p_vsegment->CurrentSegment();
int64_t i_global_position = -1;
msg_Dbg( p_demux, "seek request to %" PRId64 " (%.2f%%)", i_mk_date, f_percent * 100);
if( f_percent < 0 ) msg_Dbg( p_demux, "seek request to i_pos = %" PRId64, i_mk_date );
else msg_Dbg( p_demux, "seek request to %.2f%%", f_percent * 100 );
if( i_mk_date < 0 && f_percent < 0 )
{
msg_Warn( p_demux, "cannot seek nowhere!" );
......
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