summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-11-21 10:56:15 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-11-21 22:21:39 +0100
commit1ab1715a8c93b08ec7f1adc497d0502dd570787b (patch)
tree0385b7b82b1247e1a11661d29c6955523a28108c
parentb534842726df1841e11fd6d0a4d2d0e10b0efa16 (diff)
downloadcmumble-1ab1715a8c93b08ec7f1adc497d0502dd570787b.tar.gz
cmumble-1ab1715a8c93b08ec7f1adc497d0502dd570787b.tar.bz2
cmumble-1ab1715a8c93b08ec7f1adc497d0502dd570787b.zip
Create playback pipeline not for ourselfs
FIXME: This should rather be created ondemand, and the problem is gone at all. To be done later.
-rw-r--r--src/cmumble.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cmumble.c b/src/cmumble.c
index 259559c..d18376a 100644
--- a/src/cmumble.c
+++ b/src/cmumble.c
@@ -184,7 +184,11 @@ recv_user_state(MumbleProto__UserState *state, struct cmumble *cm)
if (cm->session == user->session)
cm->user = user;
- cmumble_audio_create_playback_pipeline(cm, user);
+ /* FIXME: Rather than doing this ugly check by name here,
+ * we should rather create the pipeline ondemand?
+ */
+ if (g_strcmp0(user->name, cm->user_name) != 0)
+ cmumble_audio_create_playback_pipeline(cm, user);
if (cm->verbose)
g_print("receive user: %s\n", user->name);
cm->users = g_list_prepend(cm->users, user);