fixed startup crash

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3292 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
iive 2001-12-03 17:14:36 +00:00
parent 4d901a1e65
commit eb95de0c7a
1 changed files with 3 additions and 0 deletions

View File

@ -212,6 +212,9 @@ stream_t* new_memory_stream(unsigned char* data,int len){
stream_t* new_stream(int fd,int type){
stream_t *s=malloc(sizeof(stream_t));
if(s==NULL) return NULL;
memset(s,0,sizeof(stream_t));
s->fd=fd;
s->type=type;
s->buf_pos=s->buf_len=0;