mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
bluetooth: reset read/write index when starting to stream
This commit is contained in:
parent
7a8be7f91e
commit
12ea5707b5
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue