From 19250ba1e16857c70cbbfe15b9e939b95e009896 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Thu, 21 Nov 2013 23:11:36 +0100 Subject: Pass message type implicity in cmumble_send_* This also removes the unneeded "struct mumble_*" which is ugly in use. --- src/audio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/audio.c') 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; } -- cgit