mirror of https://github.com/mpv-player/mpv
Patch by Tobias Diedrich <td@informatik.uni-hannover.de>:
- fix segfault due to unitialized struct in ao_nas git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6115 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
3ec6e4fc6d
commit
eb7cbca975
|
@ -320,6 +320,7 @@ static int init(int rate,int channels,int format,int flags)
|
|||
char *server;
|
||||
|
||||
nas_data=malloc(sizeof(struct ao_nas_data));
|
||||
memset(nas_data, 0, sizeof(struct ao_nas_data));
|
||||
|
||||
printf("ao2: %d Hz %d chans %s\n",rate,channels,
|
||||
audio_out_format_name(format));
|
||||
|
|
Loading…
Reference in New Issue