summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-17 18:08:18 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-17 18:08:18 +0000
commitdc19e32d67d04703798755b403fe9e642783e29b (patch)
treec3df26327a9a19c9da328e258adf49970bac3075
parent00ef6412f47ebe1e841633134982fe2c9f5ff2f1 (diff)
downloadmpv-dc19e32d67d04703798755b403fe9e642783e29b.tar.bz2
mpv-dc19e32d67d04703798755b403fe9e642783e29b.tar.xz
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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29926 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--stream/stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stream/stream.c b/stream/stream.c
index 7fc7ca2315..4ee7f8b316 100644
--- a/stream/stream.c
+++ b/stream/stream.c
@@ -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