bluetooth: fix typo with service_{read,write}_type

This commit is contained in:
Marc-André Lureau 2009-07-20 13:44:27 +03:00 committed by Lennart Poettering
parent fd32fee448
commit 3ecb80e19a

View file

@ -1739,7 +1739,8 @@ static void shutdown_bt(struct userdata *u) {
if (u->service_fd >= 0) { if (u->service_fd >= 0) {
pa_close(u->service_fd); pa_close(u->service_fd);
u->service_fd = -1; u->service_fd = -1;
u->service_write_type = u->service_write_type = 0; u->service_write_type = 0;
u->service_read_type = 0;
} }
if (u->write_memchunk.memblock) { if (u->write_memchunk.memblock) {
@ -1755,7 +1756,8 @@ static int init_bt(struct userdata *u) {
shutdown_bt(u); shutdown_bt(u);
u->stream_write_type = 0; u->stream_write_type = 0;
u->service_write_type = u->service_write_type = 0; u->service_write_type = 0;
u->service_read_type = 0;
if ((u->service_fd = bt_audio_service_open()) < 0) { if ((u->service_fd = bt_audio_service_open()) < 0) {
pa_log_error("Couldn't connect to bluetooth audio service"); pa_log_error("Couldn't connect to bluetooth audio service");