Do not send a signal for backward compatibility in case of internal stream info.... 68/97368/1 accepted/tizen/3.0/common/20161116.143913 accepted/tizen/3.0/ivi/20161116.023345 accepted/tizen/3.0/mobile/20161116.022831 accepted/tizen/3.0/tv/20161116.022939 accepted/tizen/3.0/wearable/20161116.023224 submit/tizen_3.0/20161115.060306
authorSangchul Lee <sc11.lee@samsung.com>
Mon, 14 Nov 2016 03:26:01 +0000 (12:26 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Mon, 14 Nov 2016 04:29:57 +0000 (13:29 +0900)
[Version] 0.3.76
[Profile] Common
[Issue Type] Feature Enhancement

Change-Id: Id77bde659172d4b62632367baac8767d75f68468

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

index 85e5fe8..fbaaee7 100644 (file)
@@ -108,7 +108,8 @@ if (pthread_mutex_unlock(x_mutex)) { \
 
 #define SM_UNREF_FOR_STREAM_INFO(x_count) \
 { \
-       x_count--; \
+       if (x_count > 0) \
+               x_count--; \
 } \
 
 #define SOUND_SESSION_TYPE_DEFAULT SOUND_SESSION_TYPE_MEDIA
index e10e5fa..f035615 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-media-sound-manager
 Summary:    Sound Manager library
-Version:    0.3.75
+Version:    0.3.76
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index a042f55..6e883d4 100644 (file)
@@ -91,7 +91,6 @@ int sound_manager_create_stream_information_internal(sound_stream_type_internal_
                ret = _make_pa_connection_and_register_focus(stream_h, callback, user_data);
                if (!ret) {
                        *stream_info = (sound_stream_info_h)stream_h;
-                       SM_REF_FOR_STREAM_INFO(g_stream_info_count, ret);
                        LOGI("stream_h(%p), index(%u), user_cb(%p), ret(0x%x)", stream_h, stream_h->index, stream_h->user_cb, ret);
                }
        }