bluetooth: reset read/write index when starting to stream

This commit is contained in:
Marc-André Lureau 2009-03-05 15:47:13 +02:00
parent 7a8be7f91e
commit 12ea5707b5

View file

@ -700,6 +700,9 @@ static int start_stream_fd(struct userdata *u) {
pollfd->fd = u->stream_fd; pollfd->fd = u->stream_fd;
pollfd->events = pollfd->revents = 0; pollfd->events = pollfd->revents = 0;
u->read_index = 0;
u->write_index = 0;
return 0; return 0;
} }