missing_unlock: Returning without unlocking
current_audio.detectionLock->id.
sync->https://hg.libsdl.org/SDL/file/
e12c38730512/src/audio/SDL_audio.c
Change-Id: Iaa2685b4cfbdc5d0d66b54ea294c2d76adac849a
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
current_audio.outputDevicesRemoved = SDL_FALSE;
}
- if ((iscapture) && (!current_audio.impl.HasCaptureSupport)) {
- SDL_SetError("No capture support");
- return 0;
- }
-
retval = iscapture ? current_audio.inputDeviceCount : current_audio.outputDeviceCount;
SDL_UnlockMutex(current_audio.detectionLock);
}
+
const char *
SDL_GetAudioDeviceName(int index, int iscapture)
{