Return the correct default capture device name

This commit is contained in:
Chris Robinson
2014-08-26 14:52:36 -07:00
parent 368bf037dd
commit 2b87ffece5
+1 -1
View File
@@ -2419,7 +2419,7 @@ ALC_API const ALCchar* ALC_APIENTRY alcGetString(ALCdevice *Device, ALCenum para
Device = VerifyDevice(Device);
free(alcCaptureDefaultDeviceSpecifier);
alcCaptureDefaultDeviceSpecifier = strdup(al_string_get_cstr(alcAllDevicesList));
alcCaptureDefaultDeviceSpecifier = strdup(al_string_get_cstr(alcCaptureDeviceList));
if(!alcCaptureDefaultDeviceSpecifier)
alcSetError(Device, ALC_OUT_OF_MEMORY);