summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-André Lureau <marc-andre.lureau@nokia.com>2009-03-05 17:20:31 +0200
committerMarc-André Lureau <marc-andre.lureau@nokia.com>2009-03-05 18:19:13 +0200
commit018cadd3375c7aa2a4e2b5b8371e87c4c83ee6b7 (patch)
tree7751459458a28db8d019a49a0ffe5a514cb86265
parent362d196093309c47ab7c53bb9343adf1792c9921 (diff)
bluetooth: restart timer when write begin
-rw-r--r--src/modules/bluetooth/module-bluetooth-device.c2
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)