diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2011-06-04 09:30:42 +0000 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-07-06 09:30:04 +0300 |
commit | 55def9cc1b8621c5f4e85cde9368b678e1f482a7 (patch) | |
tree | 885f7af9fc741f05fe75ad348b210a5642de6e3a /stream | |
parent | 226a32c8568551a2bcfb86353cfcee4ac80ad65f (diff) |
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
Diffstat (limited to 'stream')
-rw-r--r-- | stream/stream.h | 3 |
1 files changed, 2 insertions, 1 deletions
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(pos<s->pos){ |