1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-14 02:51:26 +00:00

permit seeking to 0: there's no reason to prevent it

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19901 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nicodvb 2006-09-18 22:02:43 +00:00
parent 126e5baa1e
commit 9490ae823a

View File

@ -264,11 +264,9 @@ static int seek(stream_t *s, off_t newpos) {
uint32_t pos = 0, len = 0, sector = 0;
dvdnav_priv_t *priv = s->priv;
if(newpos==0) {
if(dvdnav_stream_reset(priv->dvdnav))
s->pos=0;
}
else {
if(newpos==0)
dvdnav_stream_reset(priv->dvdnav);
if(s->end_pos && newpos > s->end_pos)
newpos = s->end_pos;
sector = newpos / 2048ULL;
@ -276,7 +274,6 @@ dvdnav_priv_t *priv = s->priv;
goto fail;
s->pos = newpos;
}
return 1;