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
Name: libmm-sound
Summary: MMSound Package contains client lib and sound_server binary
-Version: 0.12.61
+Version: 0.12.62
Release: 0
Group: System/Libraries
License: Apache-2.0
pa_stream_set_buffer_attr_callback(s, _pa_stream_buffer_attr_callback, h);
ret = pa_stream_connect_playback(s, NULL, NULL,
- PA_STREAM_INTERPOLATE_TIMING | PA_STREAM_ADJUST_LATENCY | PA_STREAM_AUTO_TIMING_UPDATE,
- NULL, NULL);
+ PA_STREAM_INTERPOLATE_TIMING | PA_STREAM_ADJUST_LATENCY | PA_STREAM_AUTO_TIMING_UPDATE | PA_STREAM_START_CORKED,
+ NULL, NULL);
if (ret < 0) {
debug_error("failed to pa_stream_connect_playback(), ret(%d)", ret);
goto error;