[Mplayer-cvslog] CVS: main stream.c,1.16,1.17

Arpi of Ize arpi at mplayer.dev.hu
Thu Sep 27 22:36:56 CEST 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv26780

Modified Files:
	stream.c 
Log Message:
fixed seek to EOF pos

Index: stream.c
===================================================================
RCS file: /cvsroot/mplayer/main/stream.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- stream.c	26 Sep 2001 21:35:14 -0000	1.16
+++ stream.c	27 Sep 2001 20:36:53 -0000	1.17
@@ -132,10 +132,12 @@
 }
 
   stream_fill_buffer(s);
-  if(pos>=0 && pos<s->buf_len){
+  if(pos>=0 && pos<=s->buf_len){
     s->buf_pos=pos; // byte position in sector
     return 1;
   }
+  
+//  if(pos==s->buf_len) printf("XXX Seek to last byte of file -> EOF\n");
   
 #ifdef _LARGEFILE_SOURCE
   mp_msg(MSGT_STREAM,MSGL_V,"stream_seek: WARNING! Can't seek to 0x%llX !\n",(long long)(pos+newpos));




More information about the MPlayer-cvslog mailing list