summaryrefslogtreecommitdiff
path: root/src/cmumble.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmumble.c')
-rw-r--r--src/cmumble.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cmumble.c b/src/cmumble.c
index 0b3a6f5..2613ea8 100644
--- a/src/cmumble.c
+++ b/src/cmumble.c
@@ -299,7 +299,7 @@ cmumble_protocol_init(struct cmumble *cm)
authenticate.username = cm->user_name;
authenticate.password = "";
authenticate.n_celt_versions = 1;
- authenticate.celt_versions = (int32_t[]) { 0x8000000b };
+ authenticate.celt_versions = &cm->audio.celt_bitstream_version;
cmumble_send_authenticate(cm, &authenticate);
source = g_timeout_source_new_seconds(5);
@@ -362,16 +362,16 @@ int main(int argc, char **argv)
if (cm.async_queue == NULL)
return 1;
- cmumble_commands_init(&cm);
- if (cmumble_connection_init(&cm, host, port) < 0)
- return 1;
-
gst_init(&argc, &argv);
-
if (cmumble_audio_init(&cm) < 0)
return 1;
+
+ cmumble_commands_init(&cm);
cmumble_io_init(&cm);
+ if (cmumble_connection_init(&cm, host, port) < 0)
+ return 1;
+
g_main_loop_run(cm.loop);
g_main_loop_unref(cm.loop);