audio-io fixed crash at audio_in_read() of another thread. 99/97799/2 accepted/tizen/3.0/common/20161116.144001 accepted/tizen/3.0/common/20161123.140722 accepted/tizen/3.0/ivi/20161116.023408 accepted/tizen/3.0/ivi/20161123.083636 accepted/tizen/3.0/mobile/20161116.022853 accepted/tizen/3.0/mobile/20161123.083334 accepted/tizen/3.0/tv/20161116.023008 accepted/tizen/3.0/tv/20161123.083456 accepted/tizen/3.0/wearable/20161116.023303 accepted/tizen/3.0/wearable/20161123.083551 submit/tizen_3.0/20161115.060306 submit/tizen_3.0/20161122.043110
authorKimJeongYeon <jeongyeon.kim@samsung.com>
Mon, 14 Nov 2016 08:54:56 +0000 (17:54 +0900)
committerJeongYeon Kim <jeongyeon.kim@samsung.com>
Tue, 15 Nov 2016 05:27:39 +0000 (21:27 -0800)
commitda397e78f3206605b17f2261c2517488dfbb00cf
tree82a4c3c929dd3ff784f922e66d335ba08766b3fb
parent222c4fa8e8cbfdab38c0eb5f7d9b23eaee6b1f50
audio-io fixed crash at audio_in_read() of another thread.

There are no syncronization between audio_in_read() and audio_in_unprepare().
Therefore, assert crash occurs possibly while use multiple reader thread.

Changes:
 * Add locking method at audio_in_read() and null check of mpPulseAudioClient.
 * Fixed syncronous-method of audio_out_write() too.
 * Miscellaneous typos are fixed.

[Version] 0.3.45
[Profile] Common
[Issue Type] Bug Fix

Signed-off-by: KimJeongYeon <jeongyeon.kim@samsung.com>
Change-Id: I18147b9e1e7bb5c16816250d65d2ff066f6383b7
(cherry picked from commit b465e5b8b0898e2b639ac899426faace320a36cb)
packaging/capi-media-audio-io.spec
src/cpp/CAudioInput.cpp
src/cpp/CAudioOutput.cpp
src/cpp/CPulseAudioClient.cpp
src/cpp/cpp_audio_io.cpp
test/audio_io_test.c