From 55def9cc1b8621c5f4e85cde9368b678e1f482a7 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 4 Jun 2011 09:30:42 +0000 Subject: stream: show negative seek position value in error message Make "Invalid seek to negative position" message more useful by printing the actual value. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33556 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/stream.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'stream') diff --git a/stream/stream.h b/stream/stream.h index 77319871c0..828c364d40 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -299,7 +299,8 @@ inline static int stream_seek(stream_t *s,off_t pos){ mp_dbg(MSGT_DEMUX, MSGL_DBG3, "seek to 0x%qX\n",(long long)pos); if (pos < 0) { - mp_msg(MSGT_DEMUX, MSGL_ERR, "Invalid seek to negative position!\n"); + mp_msg(MSGT_DEMUX, MSGL_ERR, "Invalid seek to negative position %llx!\n", + (long long)pos); pos = 0; } if(pospos){ -- cgit v1.2.3