bluetooth: restart timer when write begin

This commit is contained in:
Marc-André Lureau 2009-03-05 17:20:31 +02:00
parent 362d196093
commit 018cadd337

View file

@ -1126,6 +1126,8 @@ static void thread_func(void *userdata) {
} }
if (writable && do_write) { if (writable && do_write) {
if (u->write_index == 0)
u->started_at = pa_rtclock_usec();
if (u->profile == PROFILE_A2DP) { if (u->profile == PROFILE_A2DP) {
if (a2dp_process_render(u) < 0) if (a2dp_process_render(u) < 0)