From 9bbc3d2996a510e417a1ca19fe21c7c4623d2208 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Wed, 28 Sep 2011 19:31:37 +0200 Subject: Store channel in cmumble_user --- src/cmumble.c | 2 +- src/cmumble.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/cmumble.c b/src/cmumble.c index d2d60df..d276c8a 100644 --- a/src/cmumble.c +++ b/src/cmumble.c @@ -163,7 +163,7 @@ recv_user_state(MumbleProto__UserState *state, struct cmumble_context *ctx) user->session = state->session; user->name = g_strdup(state->name); user->id = state->user_id; - + user->channel = find_channel(ctx, state->channel_id); cmumble_audio_create_playback_pipeline(ctx, user); g_print("receive user: %s\n", user->name); diff --git a/src/cmumble.h b/src/cmumble.h index 8caa9ef..5168718 100644 --- a/src/cmumble.h +++ b/src/cmumble.h @@ -38,6 +38,7 @@ struct cmumble_user { uint32_t session; char *name; uint32_t id; + struct cmumble_channel *channel; GstElement *pipeline; GstAppSrc *src; -- cgit