From f3d5f566bbb8b6a8128e39f5b2dae6407b2cfd95 Mon Sep 17 00:00:00 2001 From: Seungbae Shin Date: Fri, 12 Mar 2021 11:22:13 +0900 Subject: [PATCH] fixup! mm_sound_proxy: add bt-a2dp device to query list properly only if mask satisfied [Version] 0.13.6 [Issue Type] Bug (Product) Change-Id: Ie6214bbf6fdd94125601e6fbf553715f650a6a9e --- mm_sound_proxy.c | 8 +------- packaging/libmm-sound.spec | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/mm_sound_proxy.c b/mm_sound_proxy.c index 6cd5b3f..109b456 100644 --- a/mm_sound_proxy.c +++ b/mm_sound_proxy.c @@ -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); diff --git a/packaging/libmm-sound.spec b/packaging/libmm-sound.spec index 531418d..e213627 100644 --- a/packaging/libmm-sound.spec +++ b/packaging/libmm-sound.spec @@ -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 -- 2.7.4