Mercurial > mplayer.hg
diff libmpdemux/stream.c @ 6892:b8e0b1c54940
10000l - didn't clear new stream struct, causing possible sig11 in cache layer
author | arpi |
---|---|
date | Sun, 04 Aug 2002 13:35:25 +0000 |
parents | 6863033786d1 |
children | 1394aebaa838 |
line wrap: on
line diff
--- a/libmpdemux/stream.c Sun Aug 04 11:09:20 2002 +0000 +++ b/libmpdemux/stream.c Sun Aug 04 13:35:25 2002 +0000 @@ -248,6 +248,7 @@ stream_t* new_memory_stream(unsigned char* data,int len){ stream_t *s=malloc(sizeof(stream_t)+len); + memset(s,0,sizeof(stream_t)); s->fd=-1; s->type=STREAMTYPE_MEMORY; s->buf_pos=0; s->buf_len=len;