Mercurial > mplayer.hg
changeset 638:db92248b5e78
'asf seeking before start' bug fixed
author | arpi_esp |
---|---|
date | Wed, 25 Apr 2001 21:30:46 +0000 |
parents | 19d941a8b46f |
children | 520f0e2c1113 |
files | mplayer.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mplayer.c Wed Apr 25 21:04:56 2001 +0000 +++ b/mplayer.c Wed Apr 25 21:30:46 2001 +0000 @@ -1890,7 +1890,8 @@ // printf("ASF_seek: %d secs -> %d packs -> %d bytes \n", // rel_seek_secs,rel_seek_packs,rel_seek_bytes); newpos=demuxer->filepos+rel_seek_bytes; - if(newpos<0) newpos=0; + if(newpos<0 || newpos<demuxer->movi_start) newpos=demuxer->movi_start; + printf("\r -- asf: newpos=%d -- \n",newpos); stream_seek(demuxer->stream,newpos); } break;