[SDL_Tizen] Sync latest SDL_GetNumAudioDevices function 46/173246/2
authorhuiyu.eun <huiyu.eun@samsung.com>
Tue, 20 Mar 2018 06:51:42 +0000 (15:51 +0900)
committerhuiyu eun <huiyu.eun@samsung.com>
Tue, 20 Mar 2018 08:03:05 +0000 (08:03 +0000)
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>
src/audio/SDL_audio.c

index 059b23e..94f989f 100644 (file)
@@ -822,11 +822,6 @@ SDL_GetNumAudioDevices(int iscapture)
         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);
 
@@ -834,6 +829,7 @@ SDL_GetNumAudioDevices(int iscapture)
 }
 
 
+
 const char *
 SDL_GetAudioDeviceName(int index, int iscapture)
 {