fixup! Allocate memory based on configuration parameter; 30/151830/7 accepted/tizen/unified/20170922.194638 submit/tizen/20170922.120252
authoraravind.gara <aravind.gara@samsung.com>
Fri, 22 Sep 2017 05:54:01 +0000 (14:54 +0900)
committeraravind.gara <aravind.gara@samsung.com>
Fri, 22 Sep 2017 11:20:06 +0000 (20:20 +0900)
[Version] 1.17.2-14
[Issue Type] Remove warnings

Change-Id: I41407e399245357d43920e7687f7808e021a7a3d

Alc/ALc.c
packaging/openal-soft.spec

index 14641d2..a97d75d 100644 (file)
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -3157,7 +3157,7 @@ ALC_API ALCcontext* ALC_APIENTRY alcCreateContext(ALCdevice *device, const ALCin
         /* Max voices value read from configuration file.
          * Below Fix is to reduce memory allocation.
          */
-        ConfigValueUInt(device->DeviceName, NULL, "voices", &ALContext->MaxVoices);
+        ConfigValueInt(al_string_get_cstr(device->DeviceName), NULL, "voices", &ALContext->MaxVoices);
         if(ALContext->MaxVoices == 0) ALContext->MaxVoices = 256;
 #else
         ALContext->MaxVoices = 256;
index 781d11e..053ffd3 100644 (file)
@@ -1,6 +1,6 @@
 Name:           openal-soft
 Version:        1.17.2
-Release:        13
+Release:        14
 License:        LGPL-2.0+
 Summary:        A cross-platform 3D audio API
 URL:            http://connect.creativelabs.com/openal/