# HG changeset patch # User reimar # Date 1275753477 0 # Node ID cce6efdfdb5b2e973642290b199bd8efbb870a95 # Parent 0d03e9c53d264f01c0cb58dd3e4a096a4594edd1 Do not make seek fail explicitly simply because eof was hit somewhen, instead reuse the eof checking code further down. diff -r 0d03e9c53d26 -r cce6efdfdb5b stream/stream.h --- 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(pospos){ off_t x=pos-(s->pos-s->buf_len); if(x>=0){