aboutsummaryrefslogtreecommitdiffhomepage
path: root/stream
diff options
context:
space:
mode:
authorGravatar nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-18 22:02:43 +0000
committerGravatar nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-18 22:02:43 +0000
commit9490ae823a68a87003af8e8c81822da410225948 (patch)
tree883c7525844648af7fa47de9d895a4767891a825 /stream
parent126e5baa1e35a1c834f0ff697e95750eedf553a4 (diff)
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
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_dvdnav.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c
index c52fae0120..cd7a432b44 100644
--- a/stream/stream_dvdnav.c
+++ b/stream/stream_dvdnav.c
@@ -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;