Fix SVACE defects 61/68261/1 accepted/tizen/common/20160504.125836 accepted/tizen/ivi/20160504.011127 accepted/tizen/mobile/20160504.011031 accepted/tizen/tv/20160504.011051 accepted/tizen/wearable/20160504.011114 submit/tizen/20160503.074218
authorSangchul Lee <sc11.lee@samsung.com>
Tue, 3 May 2016 07:04:19 +0000 (16:04 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Tue, 3 May 2016 07:05:33 +0000 (16:05 +0900)
[Version] Release 0.3.51
[Profile] Common
[Issue Type] Code Enhancement

Change-Id: I7c489ca3ccb580ed874013d628ad82c380cbb0ff

packaging/capi-media-sound-manager.spec
src/sound_manager_private.c

index 67ef3ad..93d8914 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-media-sound-manager
 Summary:    Sound Manager library
-Version:    0.3.50
+Version:    0.3.51
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index bcb2afe..13de9a7 100644 (file)
@@ -584,7 +584,7 @@ int _get_stream_conf_info(const char *stream_type, stream_conf_info_s *info)
                                                        2000,
                                                        NULL,
                                                        &err);
-       if (!result) {
+       if (!result && err) {
                LOGE("g_dbus_connection_call_sync() for GET_STREAM_INFO error (%s)", err->message);
                g_error_free(err);
                ret = MM_ERROR_SOUND_INTERNAL;
@@ -791,7 +791,7 @@ int _set_route_option(unsigned int index, const char *name, int value)
                                                        2000,
                                                        NULL,
                                                        &err);
-       if (!result) {
+       if (!result && err) {
                LOGE("g_dbus_connection_call_sync() for SET_STREAM_ROUTE_OPTION error (%s)", err->message);
                g_error_free(err);
                ret = MM_ERROR_SOUND_INTERNAL;