summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-André Lureau <marc-andre.lureau@nokia.com>2009-03-05 15:47:13 +0200
committerMarc-André Lureau <marc-andre.lureau@nokia.com>2009-03-05 15:47:13 +0200
commit12ea5707b561117709053ea4580d97f03b772560 (patch)
tree2a1f44bf4d6fff7e07961fab4e48e40ddf51abb6
parent7a8be7f91e775f48cb1020e8f7a2ea39db07ad69 (diff)
bluetooth: reset read/write index when starting to stream
-rw-r--r--src/modules/bluetooth/module-bluetooth-device.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c
index 495bc82f..7d601e73 100644
--- a/src/modules/bluetooth/module-bluetooth-device.c
+++ b/src/modules/bluetooth/module-bluetooth-device.c
@@ -700,6 +700,9 @@ static int start_stream_fd(struct userdata *u) {
pollfd->fd = u->stream_fd;
pollfd->events = pollfd->revents = 0;
+ u->read_index = 0;
+ u->write_index = 0;
+
return 0;
}