summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-02-16 17:35:30 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-02-16 17:35:30 +0000
commit6a37133f8c7cecb74d84b4f4f81fea90892ae652 (patch)
treefbccab9682dbfb775f5f8bd8ee06368d2285511d /audio
parent6439c43376df98aab3cfb9cdcde0c3c0bfd2a367 (diff)
Reset data buffer when disconnecting
Diffstat (limited to 'audio')
-rw-r--r--audio/headset.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/headset.c b/audio/headset.c
index 3714989b..489cb09c 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -1067,6 +1067,9 @@ static DBusHandlerResult hs_disconnect(struct headset *hs, DBusMessage *msg)
hs_signal(hs, "Disconnected");
+ hs->data_start = 0;
+ hs->data_length = 0;
+
if (reply)
send_message_and_unref(connection, reply);