Mercurial > mplayer.hg
changeset 19895:1beb8cfbc948
permit seeking to 0: there's no reason to prevent it
author | nicodvb |
---|---|
date | Mon, 18 Sep 2006 22:02:43 +0000 |
parents | bec5c0d5fb17 |
children | 7f0caf768528 |
files | stream/stream_dvdnav.c |
diffstat | 1 files changed, 3 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/stream_dvdnav.c Mon Sep 18 21:26:26 2006 +0000 +++ b/stream/stream_dvdnav.c Mon Sep 18 22:02:43 2006 +0000 @@ -264,11 +264,9 @@ 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 @@ goto fail; s->pos = newpos; - } return 1;