mirror of
https://github.com/mpv-player/mpv
synced 2025-03-19 09:57:34 +00:00
10000l - didn't clear new stream struct, causing possible sig11 in cache layer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6893 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c784deba62
commit
ae0d40780a
@ -248,6 +248,7 @@ void stream_reset(stream_t *s){
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user