diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-11-21 23:11:36 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-11-22 08:25:04 +0100 |
commit | 19250ba1e16857c70cbbfe15b9e939b95e009896 (patch) | |
tree | 2bfd6228b1e65cefe584196566bbc40de6321d5b /src/audio.c | |
parent | 68992dfac34263d8da2ba9523342d92cbd6f6f98 (diff) | |
download | cmumble-19250ba1e16857c70cbbfe15b9e939b95e009896.tar.gz cmumble-19250ba1e16857c70cbbfe15b9e939b95e009896.tar.bz2 cmumble-19250ba1e16857c70cbbfe15b9e939b95e009896.zip |
Pass message type implicity in cmumble_send_*
This also removes the unneeded "struct mumble_*" which is ugly in use.
Diffstat (limited to 'src/audio.c')
-rw-r--r-- | src/audio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audio.c b/src/audio.c index 1c537dd..d7909c9 100644 --- a/src/audio.c +++ b/src/audio.c @@ -23,7 +23,7 @@ pull_buffer(GstAppSink *sink, gpointer user_data) GstBuffer *buf; uint8_t data[1024]; uint32_t write = 0, pos = 0; - MumbleProto__UDPTunnel tunnel; + mumble_udptunnel_t tunnel; static int seq = 0; /* FIXME: Make this more generic/disable pulling @@ -54,10 +54,10 @@ pull_buffer(GstAppSink *sink, gpointer user_data) gst_buffer_unref(buf); - mumble_proto__udptunnel__init(&tunnel); + cmumble_init_udptunnel(&tunnel); tunnel.packet.data = data; tunnel.packet.len = pos; - cmumble_send_msg(cm, &tunnel.base); + cmumble_send_udptunnel(cm, &tunnel); return GST_FLOW_OK; } |