From 1ab1715a8c93b08ec7f1adc497d0502dd570787b Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Thu, 21 Nov 2013 10:56:15 +0100 Subject: Create playback pipeline not for ourselfs FIXME: This should rather be created ondemand, and the problem is gone at all. To be done later. --- src/cmumble.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- cgit