[MPlayer-cvslog] r31323 - trunk/stream/stream.h

reimar subversion at mplayerhq.hu
Sat Jun 5 17:57:57 CEST 2010


Author: reimar
Date: Sat Jun  5 17:57:57 2010
New Revision: 31323

Log:
Do not make seek fail explicitly  simply because eof was hit somewhen,
instead reuse the eof checking code further down.

Modified:
   trunk/stream/stream.h

Modified: trunk/stream/stream.h
==============================================================================
--- trunk/stream/stream.h	Sat Jun  5 15:44:20 2010	(r31322)
+++ trunk/stream/stream.h	Sat Jun  5 17:57:57 2010	(r31323)
@@ -284,8 +284,6 @@ inline static int stream_seek(stream_t *
 
   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){


More information about the MPlayer-cvslog mailing list