[MPlayer-cvslog] r29926 - trunk/stream/stream.c

reimar subversion at mplayerhq.hu
Tue Nov 17 19:08:18 CET 2009


Author: reimar
Date: Tue Nov 17 19:08:18 2009
New Revision: 29926

Log:
Enable the read-based forward seek fallback also when CONFIG_NETWORK is
enabled.
Enabling network support should not have side-effects on code not really
related to networking.

Modified:
   trunk/stream/stream.c

Modified: trunk/stream/stream.c
==============================================================================
--- trunk/stream/stream.c	Tue Nov 17 19:05:54 2009	(r29925)
+++ trunk/stream/stream.c	Tue Nov 17 19:08:18 2009	(r29926)
@@ -331,8 +331,9 @@ if(newpos==0 || newpos!=s->pos){
         mp_msg(MSGT_STREAM,MSGL_INFO,"Stream not seekable!\n");
         return 1;
       }
+      break;
     }
-#else
+#endif
     if(newpos<s->pos){
       mp_msg(MSGT_STREAM,MSGL_INFO,"Cannot seek backward in linear streams!\n");
       return 1;
@@ -340,7 +341,6 @@ if(newpos==0 || newpos!=s->pos){
     while(s->pos<newpos){
       if(stream_fill_buffer(s)<=0) break; // EOF
     }
-#endif
     break;
   default:
     // This should at the beginning as soon as all streams are converted


More information about the MPlayer-cvslog mailing list