From: Seungbae Shin Date: Tue, 13 Dec 2016 14:50:24 +0000 (+0900) Subject: unprepare internally when destroy for backward compatibility X-Git-Tag: accepted/tizen/3.0.m2/mobile/20170104.100220^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F84%2F104584%2F2;p=platform%2Fcore%2Fapi%2Faudio-io.git unprepare internally when destroy for backward compatibility [Version] 0.3.48 [Profile] Common [Issue Type] compatibility Change-Id: I8a6a623748783c15b77173f684b221bf8211bae5 --- diff --git a/packaging/capi-media-audio-io.spec b/packaging/capi-media-audio-io.spec index 0eb3b25..d5dca27 100644 --- a/packaging/capi-media-audio-io.spec +++ b/packaging/capi-media-audio-io.spec @@ -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 diff --git a/src/audio_io.c b/src/audio_io.c index 8450a4c..c6b1444 100644 --- a/src/audio_io.c +++ b/src/audio_io.c @@ -19,6 +19,11 @@ #include #include +#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) diff --git a/src/cpp/cpp_audio_io.cpp b/src/cpp/cpp_audio_io.cpp index 1f90406..36babbc 100644 --- a/src/cpp/cpp_audio_io.cpp +++ b/src/cpp/cpp_audio_io.cpp @@ -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);