fixup! mm_sound_proxy: add bt-a2dp device to query list properly only if mask satisfied 85/255085/1 accepted/tizen_6.0_unified tizen_6.0 accepted/tizen/6.0/unified/20210314.211335 submit/tizen_6.0/20210312.030630
authorSeungbae Shin <seungbae.shin@samsung.com>
Fri, 12 Mar 2021 02:22:13 +0000 (11:22 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Fri, 12 Mar 2021 02:24:07 +0000 (02:24 +0000)
[Version] 0.13.6
[Issue Type] Bug (Product)

Change-Id: Ie6214bbf6fdd94125601e6fbf553715f650a6a9e

mm_sound_proxy.c
packaging/libmm-sound.spec

index 6cd5b3f..109b456 100644 (file)
@@ -385,10 +385,6 @@ static mm_sound_device_t* _get_tv_bt_device(int device_flags)
                        debug_warning("internal flag given, skip checking bt a2dp");
                        return NULL;
                }
-               if (device_flags & DEVICE_STATE_DEACTIVATED_FLAG) {
-                       debug_warning("deactivated flag given, skip checking bt a2dp");
-                       return NULL;
-               }
        }
 
        if (vconf_get_int(_VCONF_KEY_SOUND_SPEAKER_SELECTION, &speaker_value) == VCONF_ERROR) {
@@ -400,9 +396,7 @@ static mm_sound_device_t* _get_tv_bt_device(int device_flags)
        if (speaker_value != _AUDIO_TV_OUTPUT_BT_HEADSET)
                return NULL;
 
-       device_item = g_malloc0(sizeof(mm_sound_device_t));
-       if (!device_item)
-               return NULL;
+       device_item = g_new0(mm_sound_device_t, 1);
 
        MMSOUND_STRNCPY(device_item->name, "BluetoothMedia", MAX_DEVICE_NAME_NUM);
        MMSOUND_STRNCPY(device_item->type, "bt-a2dp", MAX_DEVICE_TYPE_STR_LEN);
index 531418d..e213627 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-sound
 Summary:    MMSound Package contains client lib and sound_server binary
-Version:    0.13.5
+Version:    0.13.6
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0