device-manager : Check param for pcm device to load 76/89376/1
authorMok Jeongho <jho.mok@samsung.com>
Fri, 23 Sep 2016 08:16:55 +0000 (17:16 +0900)
committerMok Jeongho <jho.mok@samsung.com>
Fri, 23 Sep 2016 08:19:13 +0000 (17:19 +0900)
[Version] 5.0.75
[Profile] Common
[Issue Type] Fix bug

Change-Id: I827b93ef88800e3bd8baf272730946fb492fafea

packaging/pulseaudio-modules-tizen.spec
src/device-manager.c

index a2df63cfa3d5748a5bf3f076954b123688e631c8..0d98b8dbd6c79b2f04e86fffa74c1ae5b2bdb0df 100644 (file)
@@ -1,6 +1,6 @@
 Name:             pulseaudio-modules-tizen
 Summary:          Pulseaudio modules for Tizen
-Version:          5.0.74
+Version:          5.0.75
 Release:          0
 Group:            Multimedia/Audio
 License:          LGPL-2.1+
index b5638454a566e44f903ec6cdd55dfe57d3af9a80..81ed0c21a75df5469032ac1f7fee891deb8d9eb2 100644 (file)
@@ -1799,6 +1799,10 @@ static int _load_type_devices(struct device_type_info *type_info, bool is_playba
 
     PA_HASHMAP_FOREACH_KEY(device_string, pcm_devices, state, role) {
         params = _file_infos_get_param(file_infos, device_string, role);
+        if (params == NULL) {
+            pa_log_error("Failed to get param for %s", device_string);
+            continue;
+        }
         /* Check duplicate load */
         if (is_playback && _core_get_sink(dm->core, device_string, params)) {
             pa_log_debug("Already loaded %s %s", device_string, params);