[vlc-commits] MKV: change debug message

Jean-Baptiste Kempf git at videolan.org
Thu Nov 28 18:15:58 CET 2013


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Nov 28 18:14:47 2013 +0100| [b7f0b131118be2bc301cc0928133fbcfb17fbbe7] | committer: Jean-Baptiste Kempf

MKV: change debug message

No need to call stream_Size and divide by 0

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

 modules/demux/mkv/matroska_segment.cpp |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/demux/mkv/matroska_segment.cpp b/modules/demux/mkv/matroska_segment.cpp
index 5e71206..428294c 100644
--- a/modules/demux/mkv/matroska_segment.cpp
+++ b/modules/demux/mkv/matroska_segment.cpp
@@ -915,8 +915,7 @@ void matroska_segment_c::Seek( mtime_t i_date, mtime_t i_time_offset, int64_t i_
         i_seek_time = p_indexes[i_idx].i_time;
     }
 
-    msg_Dbg( &sys.demuxer, "seek got %"PRId64" (%d%%)",
-                i_seek_time, (int)( 100 * i_seek_position / stream_Size( sys.demuxer.s ) ) );
+    msg_Dbg( &sys.demuxer, "seek got %"PRId64" - %"PRId64, i_seek_time, i_seek_position );
 
     es.I_O().setFilePointer( i_seek_position, seek_beginning );
 



More information about the vlc-commits mailing list