summaryrefslogtreecommitdiffstats
path: root/audio/a2dp.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-01-31 13:44:03 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2008-01-31 13:44:03 +0000
commit7e64674f8b5c5be6b3cccb17ea05766763d50f94 (patch)
treed37c74afc2941e3a5e60f87ac5ae0ea47d8b5e96 /audio/a2dp.c
parentad31a843448470c91973a8b4b2a6067a3b3235fc (diff)
Don't confuse Sink interface with local sink support
Diffstat (limited to 'audio/a2dp.c')
-rw-r--r--audio/a2dp.c8
1 files 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);