changeset 29884:9112683a9a02

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.
author reimar
date Tue, 17 Nov 2009 18:08:18 +0000
parents 306e614b92cb
children 0ed2bca29afa
files stream/stream.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream.c	Tue Nov 17 18:05:54 2009 +0000
+++ b/stream/stream.c	Tue Nov 17 18:08:18 2009 +0000
@@ -331,8 +331,9 @@
         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 @@
     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