changeset 31260:9a748502953b

Also print current stream position in mp_read debug output.
author reimar
date Sat, 05 Jun 2010 16:14:56 +0000
parents dc3954ca63ca
children cd1dd08a0afc
files libmpdemux/demux_lavf.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c	Sat Jun 05 16:12:36 2010 +0000
+++ b/libmpdemux/demux_lavf.c	Sat Jun 05 16:14:56 2010 +0000
@@ -89,7 +89,8 @@
 
     ret=stream_read(stream, buf, size);
 
-    mp_msg(MSGT_HEADER,MSGL_DBG2,"%d=mp_read(%p, %p, %d), eof:%d\n", ret, stream, buf, size, stream->eof);
+    mp_msg(MSGT_HEADER,MSGL_DBG2,"%d=mp_read(%p, %p, %d), pos: %"PRId64", eof:%d\n",
+           ret, stream, buf, size, stream_tell(stream), stream->eof);
     return ret;
 }