summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);