audio-io fixed crash at audio_in_read() of another thread. 78/97478/3 accepted/tizen/common/20161115.200735 accepted/tizen/common/20161122.192836 accepted/tizen/ivi/20161115.234320 accepted/tizen/ivi/20161122.235922 accepted/tizen/mobile/20161115.234119 accepted/tizen/mobile/20161122.235715 accepted/tizen/tv/20161115.234211 accepted/tizen/tv/20161122.235757 accepted/tizen/wearable/20161115.234243 accepted/tizen/wearable/20161122.235839 submit/tizen/20161115.062308 submit/tizen/20161122.044017
authorKimJeongYeon <jeongyeon.kim@samsung.com>
Mon, 14 Nov 2016 08:54:56 +0000 (17:54 +0900)
committerKimJeongYeon <jeongyeon.kim@samsung.com>
Tue, 15 Nov 2016 01:13:41 +0000 (10:13 +0900)
commitb465e5b8b0898e2b639ac899426faace320a36cb
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
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