raop: Code clarification : Only free the I/O thread when everything is initialized

This commit is contained in:
ckdo 2019-10-29 08:55:02 +01:00 committed by Georg Chini
parent 7e6bb05390
commit 46dd3be8ce

View file

@ -169,9 +169,9 @@ static int sink_process_msg(pa_msgobject *o, int code, void *data, int64_t offse
pa_usec_t now; pa_usec_t now;
now = pa_rtclock_now(); now = pa_rtclock_now();
pa_rtpoll_set_timer_absolute(u->rtpoll, now);
u->write_count = 0; u->write_count = 0;
u->start = now; u->start = now;
pa_rtpoll_set_timer_absolute(u->rtpoll, now);
if (u->sink->thread_info.state == PA_SINK_SUSPENDED) { if (u->sink->thread_info.state == PA_SINK_SUSPENDED) {
/* Our stream has been suspended so we just flush it... */ /* Our stream has been suspended so we just flush it... */