Unlink messages is sent twice in a row in I/O thread. So, it make
sink_input_kill function call twice without a guard on TM1.
[Version] 13.0.16
[Issue Type] Bugs
Change-Id: Ibbe3041a64107ce4fdcf842658a472aad3c23d02
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
Name: pulseaudio-modules-tizen
Summary: Pulseaudio modules for Tizen
-Version: 13.0.15
+Version: 13.0.16
Release: 0
Group: Multimedia/Audio
License: LGPL-2.1+
uint16_t loop;
uint32_t sample;
bool silence;
+ bool unlinked;
};
inline uint32_t tone_msec_to_bytes(uint16_t msec) {
return -1;
if (tone_peek_fixed_size(t, i, chunk, length) < 0) {
- if (pa_sink_input_safe_to_remove(i)) {
+ if (pa_sink_input_safe_to_remove(i) && !t->unlinked) {
pa_asyncmsgq_post(pa_thread_mq_get()->outq, PA_MSGOBJECT(i),
TONE_SOUND_MESSAGE_UNLINK, NULL, 0, NULL, NULL);
+ t->unlinked = true;
}
return -1;
}