From: Sangchul Lee Date: Tue, 23 Aug 2016 23:00:33 +0000 (+0900) Subject: Fix return value in case of invalid id parameter of sound_manager_remove_focus_state_... X-Git-Tag: accepted/tizen/common/20160824.154756^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d36e5dcb84bccb26eab6ffb9810095053e2471ab;p=platform%2Fcore%2Fapi%2Fsound-manager.git Fix return value in case of invalid id parameter of sound_manager_remove_focus_state_watch_cb() [Version] Release 0.3.61 [Profile] Common [Issue Type] Bug fix Change-Id: Ib5aacb39bfb031215a0342430a24435236e173c4 Signed-off-by: Sangchul Lee --- diff --git a/packaging/capi-media-sound-manager.spec b/packaging/capi-media-sound-manager.spec index 12a0179..31d6ac1 100755 --- a/packaging/capi-media-sound-manager.spec +++ b/packaging/capi-media-sound-manager.spec @@ -1,6 +1,6 @@ Name: capi-media-sound-manager Summary: Sound Manager library -Version: 0.3.60 +Version: 0.3.61 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/sound_manager.c b/src/sound_manager.c index 7b2156a..d11117b 100644 --- a/src/sound_manager.c +++ b/src/sound_manager.c @@ -439,7 +439,7 @@ int sound_manager_remove_focus_state_watch_cb(int id) break; if (i == SOUND_STREAM_INFO_ARR_MAX) { LOGE("cound not find item in focus watch info array for this id(%d)", id); - ret = MM_ERROR_SOUND_INTERNAL; + ret = MM_ERROR_INVALID_ARGUMENT; goto LEAVE; }