[MPlayer-cvslog] r19901 - trunk/stream/stream_dvdnav.c

nicodvb subversion at mplayerhq.hu
Tue Sep 19 00:02:43 CEST 2006


Author: nicodvb
Date: Tue Sep 19 00:02:43 2006
New Revision: 19901

Modified:
   trunk/stream/stream_dvdnav.c

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


Modified: trunk/stream/stream_dvdnav.c
==============================================================================
--- trunk/stream/stream_dvdnav.c	(original)
+++ trunk/stream/stream_dvdnav.c	Tue Sep 19 00:02:43 2006
@@ -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;
   



More information about the MPlayer-cvslog mailing list