Fix to start stream corked to avoid early drain complete 00/226200/4
authorSeungbae Shin <seungbae.shin@samsung.com>
Thu, 27 Feb 2020 11:34:14 +0000 (20:34 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Fri, 28 Feb 2020 04:42:28 +0000 (13:42 +0900)
commit8e7f8698c84e6be4a36acb492c41ce89e0d4ee88
tree4c345e7d8ff6ff6b857011cb0c764d7b988bed40
parentd9bae324d4a3e42d96b191161d77515a42e547e3
Fix to start stream corked to avoid early drain complete

For short file playback, drain operation can be completed to early prior to actual stream start.
This is due to connecting playback stream with uncorked.
In this situation, stream handle will not be valid any more and finally crash occurred.
To fix this issue, stream should be started with corked state.

[Version] 0.12.62
[Issue Type] Bug

Change-Id: I32f0748dc64ce822a4fa277d957792dfecb5a323
packaging/libmm-sound.spec
server/plugin/wav/mm_sound_plugin_codec_wave.c