diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-09-28 19:31:37 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-09-28 19:45:48 +0200 |
commit | 9bbc3d2996a510e417a1ca19fe21c7c4623d2208 (patch) | |
tree | f873d0e1c7235f94825c08778f4e7fd9cadb1ba2 | |
parent | 31a5ffc4e23561a7aca0a20ba7ec555b628b74b3 (diff) | |
download | cmumble-9bbc3d2996a510e417a1ca19fe21c7c4623d2208.tar.gz cmumble-9bbc3d2996a510e417a1ca19fe21c7c4623d2208.tar.bz2 cmumble-9bbc3d2996a510e417a1ca19fe21c7c4623d2208.zip |
Store channel in cmumble_user
-rw-r--r-- | src/cmumble.c | 2 | ||||
-rw-r--r-- | src/cmumble.h | 1 |
2 files changed, 2 insertions, 1 deletions
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; |