Remove checking return value of vconf set API due to the permission (vconf API does... 47/51347/2 accepted/tizen/mobile/20151109.233730 accepted/tizen/tv/20151109.233741 accepted/tizen/wearable/20151109.233755 submit/tizen/20151109.054009
authorSangchul Lee <sc11.lee@samsung.com>
Mon, 9 Nov 2015 05:13:58 +0000 (14:13 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Mon, 9 Nov 2015 05:21:50 +0000 (14:21 +0900)
[Version] Release 0.9.271
[Profile] Common
[Issue Type] Code clean-up

Change-Id: Ia076d28bde73463bdb363a1b7aba4bf12061fea4
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
common/mm_sound_utils.c
packaging/libmm-sound.spec

index 396833d..ad3f835 100644 (file)
@@ -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;
 }
index 35adda7..82817de 100644 (file)
@@ -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