From 7e64674f8b5c5be6b3cccb17ea05766763d50f94 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 31 Jan 2008 13:44:03 +0000 Subject: Don't confuse Sink interface with local sink support --- audio/a2dp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/audio/a2dp.c b/audio/a2dp.c index fa5ff2bf..449b72c7 100644 --- a/audio/a2dp.c +++ b/audio/a2dp.c @@ -1035,7 +1035,7 @@ int a2dp_init(DBusConnection *conn, GKeyFile *config) { int sbc_srcs = 1, sbc_sinks = 0; int mpeg12_srcs = 0, mpeg12_sinks = 0; - gboolean src = TRUE, sink = TRUE; + gboolean source = TRUE, sink = TRUE; char *str; GError *err = NULL; int i; @@ -1051,9 +1051,9 @@ int a2dp_init(DBusConnection *conn, GKeyFile *config) err = NULL; } else { if (strstr(str, "Sink")) - sink = FALSE; + source = FALSE; if (strstr(str, "Source")) - src = FALSE; + sink = FALSE; g_free(str); } @@ -1102,7 +1102,7 @@ proceed: avdtp_init(); - if (src) { + if (source) { for (i = 0; i < sbc_srcs; i++) a2dp_add_sep(conn, AVDTP_SEP_TYPE_SOURCE, A2DP_CODEC_SBC); -- cgit