mirror of https://github.com/mpv-player/mpv
fixed startup crash
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3292 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
4d901a1e65
commit
eb95de0c7a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue