diff options
author | Marc-André Lureau <marc-andre.lureau@nokia.com> | 2009-03-05 17:20:31 +0200 |
---|---|---|
committer | Marc-André Lureau <marc-andre.lureau@nokia.com> | 2009-03-05 18:19:13 +0200 |
commit | 018cadd3375c7aa2a4e2b5b8371e87c4c83ee6b7 (patch) | |
tree | 7751459458a28db8d019a49a0ffe5a514cb86265 /src/modules/bluetooth | |
parent | 362d196093309c47ab7c53bb9343adf1792c9921 (diff) |
bluetooth: restart timer when write begin
Diffstat (limited to 'src/modules/bluetooth')
-rw-r--r-- | src/modules/bluetooth/module-bluetooth-device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c index d5c2a87c..3e09611e 100644 --- a/src/modules/bluetooth/module-bluetooth-device.c +++ b/src/modules/bluetooth/module-bluetooth-device.c @@ -1126,6 +1126,8 @@ static void thread_func(void *userdata) { } if (writable && do_write) { + if (u->write_index == 0) + u->started_at = pa_rtclock_usec(); if (u->profile == PROFILE_A2DP) { if (a2dp_process_render(u) < 0) |