mirror of
https://github.com/mpv-player/mpv
synced 2024-12-12 09:56:30 +00:00
Do not assign constant string to audio_driver_list, it is supposed
to contain malloc'd strings git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19953 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
0a612539ea
commit
c466bd5d89
@ -372,8 +372,9 @@ static LRESULT CALLBACK PrefsWndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM
|
||||
const ao_info_t *info = audio_out_drivers[j++]->info;
|
||||
if(!audio_driver_list)
|
||||
{
|
||||
gaddlist(&audio_driver_list, (char *)info->short_name);
|
||||
audio_driver_list[0] = "win32";
|
||||
// FIXME: default priority (i.e. order in audio_out_drivers) should be fixed instead
|
||||
// if win32 as default is really desirable
|
||||
gaddlist(&audio_driver_list, "win32"/*(char *)info->short_name*/);
|
||||
}
|
||||
SendDlgItemMessage(hwnd, ID_AO_DRIVER, CB_ADDSTRING, 0, (LPARAM) info->short_name);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user