[Mplayer-cvslog] CVS: main stream.c,1.3,1.4

GEREOFFY arpi_esp at users.sourceforge.net
Fri Apr 20 03:07:17 CEST 2001


Update of /cvsroot/mplayer/main
In directory usw-pr-cvs1:/tmp/cvs-serv27937

Modified Files:
	stream.c 
Log Message:
EOF return value of stream_read_char() changed 0 => -0x100

Index: stream.c
===================================================================
RCS file: /cvsroot/mplayer/main/stream.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** stream.c	2001/04/17 22:04:44	1.3
--- stream.c	2001/04/20 01:07:14	1.4
***************
*** 40,46 ****
  }
  
! inline unsigned int stream_read_char(stream_t *s){
    return (s->buf_pos<s->buf_len)?s->buffer[s->buf_pos++]:
!     (stream_fill_buffer(s)?s->buffer[s->buf_pos++]:0);
  //  if(s->buf_pos<s->buf_len) return s->buffer[s->buf_pos++];
  //  stream_fill_buffer(s);
--- 40,46 ----
  }
  
! inline int stream_read_char(stream_t *s){
    return (s->buf_pos<s->buf_len)?s->buffer[s->buf_pos++]:
!     (stream_fill_buffer(s)?s->buffer[s->buf_pos++]:-256);
  //  if(s->buf_pos<s->buf_len) return s->buffer[s->buf_pos++];
  //  stream_fill_buffer(s);


_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog



More information about the MPlayer-cvslog mailing list