unprepare internally when destroy for backward compatibility 84/104584/2 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170104.100220 accepted/tizen/3.0.m2/tv/20170104.100358 accepted/tizen/3.0.m2/wearable/20170104.100947 accepted/tizen/3.0/common/20161215.162926 accepted/tizen/3.0/ivi/20161215.043848 accepted/tizen/3.0/mobile/20161215.043641 accepted/tizen/3.0/tv/20161215.043745 accepted/tizen/3.0/wearable/20161215.043801 submit/tizen_3.0.m2/20170104.093748 submit/tizen_3.0/20161214.084609
authorSeungbae Shin <seungbae.shin@samsung.com>
Tue, 13 Dec 2016 14:50:24 +0000 (23:50 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Wed, 14 Dec 2016 03:39:18 +0000 (12:39 +0900)
[Version] 0.3.48
[Profile] Common
[Issue Type] compatibility

Change-Id: I8a6a623748783c15b77173f684b221bf8211bae5

packaging/capi-media-audio-io.spec
src/audio_io.c
src/cpp/cpp_audio_io.cpp

index 0eb3b25..d5dca27 100644 (file)
@@ -1,6 +1,6 @@
 Name:           capi-media-audio-io
 Summary:        An Audio Input & Audio Output library in Tizen Native API
-Version:        0.3.47
+Version:        0.3.48
 Release:        0
 Group:          Multimedia/API
 License:        Apache-2.0
index 8450a4c..c6b1444 100644 (file)
 #include <cpp_audio_io.h>
 #include <dlog.h>
 
+#ifdef LOG_TAG
+#undef LOG_TAG
+#endif
+#define LOG_TAG "TIZEN_N_AUDIO_IO"
+
 #define DEPRECATED_WARN() do { \
        LOGW("DEPRECATION WARNING: %s() is deprecated and will be removed from next release.", __func__); \
 } while (0)
index 1f90406..36babbc 100644 (file)
@@ -469,6 +469,9 @@ int cpp_audio_in_destroy(audio_in_h input) {
 
         assert(handle->audioIoHandle);
 
+        /* Internal unprepare for backward compatibility */
+        handle->audioIoHandle->unprepare();
+
         SAFE_FINALIZE(handle->audioIoHandle);
         SAFE_DELETE(handle->audioIoHandle);
         SAFE_DELETE(handle);
@@ -1102,6 +1105,9 @@ int cpp_audio_out_destroy(audio_out_h output) {
 
         assert(handle->audioIoHandle);
 
+        /* Internal unprepare for backward compatibility */
+        handle->audioIoHandle->unprepare();
+
         SAFE_FINALIZE(handle->audioIoHandle);
         SAFE_DELETE(handle->audioIoHandle);
         SAFE_DELETE(handle);