[Mplayer-cvslog] CVS: main/libmpdemux stream.c,1.57,1.58

D Richard Felker III dalias at aerifal.cx
Fri Apr 4 18:20:02 CEST 2003


On Fri, Apr 04, 2003 at 05:41:04PM +0200, Alban Bedel CVS wrote:
> Update of /cvsroot/mplayer/main/libmpdemux
> In directory mail:/var/tmp.root/cvs-serv2951/libmpdemux
> 
> Modified Files:
> 	stream.c 
> Log Message:
> 10L NULL == 0 == stdin
> 
> 
> Index: stream.c
> ===================================================================
> RCS file: /cvsroot/mplayer/main/libmpdemux/stream.c,v
> retrieving revision 1.57
> retrieving revision 1.58
> diff -u -r1.57 -r1.58
> --- stream.c	3 Apr 2003 12:00:50 -0000	1.57
> +++ stream.c	4 Apr 2003 15:41:00 -0000	1.58
> @@ -163,7 +163,7 @@
>  
>  int stream_fill_buffer(stream_t *s){
>    int len;
> -  if (s->fd == NULL || s->eof) { s->buf_pos = s->buf_len = 0; return 0; }
> +  if (s->eof) { s->buf_pos = s->buf_len = 0; return 0; }

Hmm, maybe you should check if s->fd<0, or is this pointless?

Rich



More information about the MPlayer-cvslog mailing list