From: Sangchul Lee Date: Mon, 9 Nov 2015 05:13:58 +0000 (+0900) Subject: Remove checking return value of vconf set API due to the permission (vconf API does... X-Git-Tag: accepted/tizen/mobile/20151109.233730^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f34efc4f40a7d8f9d121c71324d44e796e5b9063;p=platform%2Fcore%2Fmultimedia%2Flibmm-sound.git Remove checking return value of vconf set API due to the permission (vconf API does not support it anymore) [Version] Release 0.9.271 [Profile] Common [Issue Type] Code clean-up Change-Id: Ia076d28bde73463bdb363a1b7aba4bf12061fea4 Signed-off-by: Sangchul Lee --- diff --git a/common/mm_sound_utils.c b/common/mm_sound_utils.c index 396833d..ad3f835 100644 --- a/common/mm_sound_utils.c +++ b/common/mm_sound_utils.c @@ -165,10 +165,7 @@ int mm_sound_util_volume_set_value_by_type(volume_type_t type, unsigned int valu /* Set volume value to VCONF */ if ((ret = vconf_set_int(g_volume_vconf[type], vconf_value)) != 0) { debug_error ("vconf_set_int(%s) failed..ret[%d]\n", g_volume_vconf[type], ret); - if (ret == -EPERM || ret == -EACCES) - return MM_ERROR_SOUND_PERMISSION_DENIED; - else - return MM_ERROR_SOUND_INTERNAL; + return MM_ERROR_SOUND_INTERNAL; } return ret; } diff --git a/packaging/libmm-sound.spec b/packaging/libmm-sound.spec index 35adda7..82817de 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.9.271 +Version: 0.9.272 Release: 0 Group: System/Libraries License: Apache-2.0