mirror of
https://github.com/mpv-player/mpv
synced 2025-03-19 18:05:21 +00:00
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
This commit is contained in:
parent
226a32c856
commit
55def9cc1b
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user