changeset 31257:cce6efdfdb5b

Do not make seek fail explicitly simply because eof was hit somewhen, instead reuse the eof checking code further down.
author reimar
date Sat, 05 Jun 2010 15:57:57 +0000
parents 0d03e9c53d26
children a755bac0b6f4
files stream/stream.h
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream.h	Sat Jun 05 13:44:20 2010 +0000
+++ b/stream/stream.h	Sat Jun 05 15:57:57 2010 +0000
@@ -284,8 +284,6 @@
 
   mp_dbg(MSGT_DEMUX, MSGL_DBG3, "seek to 0x%qX\n",(long long)pos);
 
-  if(s->eof)
-    return 0;
   if(pos<s->pos){
     off_t x=pos-(s->pos-s->buf_len);
     if(x>=0){