[vlc-devel] [PATCH 27/27] mkv: fixed seek request diagnostic
Filip Roséen
filip at videolabs.io
Fri Mar 4 17:04:19 CET 2016
The diagnostic's intention was to print where we are going to seek in
procent, though the actual output was previously in the range `[0.0,
1.0]`.
---
modules/demux/mkv/mkv.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/mkv/mkv.cpp b/modules/demux/mkv/mkv.cpp
index 04b7f2d..13b37b4 100644
--- a/modules/demux/mkv/mkv.cpp
+++ b/modules/demux/mkv/mkv.cpp
@@ -441,7 +441,7 @@ 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 " (%f%%)", i_mk_date, f_percent );
+ msg_Dbg( p_demux, "seek request to %" PRId64 " (%.2f%%)", i_mk_date, f_percent * 100);
if( i_mk_date < 0 && f_percent < 0 )
{
msg_Warn( p_demux, "cannot seek nowhere!" );
--
2.7.2
More information about the vlc-devel
mailing list