aboutsummaryrefslogtreecommitdiff
path: root/plugins/ice/src/transport_parameters.vala
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2021-12-25 18:25:13 +0100
committerMarvin W <git@larma.de>2021-12-25 18:25:29 +0100
commit9490ffed6b5a2b17426d3aabcb3d4fa4c8e53625 (patch)
tree8472366ce99b91345c2b8191ae9763a34b674bf1 /plugins/ice/src/transport_parameters.vala
parentf591335ee3709db2352eccc3d0beb231d081f6d4 (diff)
downloaddino-9490ffed6b5a2b17426d3aabcb3d4fa4c8e53625.tar.gz
dino-9490ffed6b5a2b17426d3aabcb3d4fa4c8e53625.zip
Fixes for older valac versions
Diffstat (limited to 'plugins/ice/src/transport_parameters.vala')
-rw-r--r--plugins/ice/src/transport_parameters.vala7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/ice/src/transport_parameters.vala b/plugins/ice/src/transport_parameters.vala
index 73cf6166..fdeebb82 100644
--- a/plugins/ice/src/transport_parameters.vala
+++ b/plugins/ice/src/transport_parameters.vala
@@ -43,13 +43,14 @@ public class Dino.Plugins.Ice.TransportParameters : JingleIceUdp.IceUdpTransport
if (dtls_srtp_handler != null) {
uint8[] encrypted_data = dtls_srtp_handler.process_outgoing_data(component_id, datagram.get_data());
if (encrypted_data == null) return;
- // TODO: Nonblocking might require certain libnice versions?
- GLib.OutputVector[] vectors = {{ encrypted_data, encrypted_data.length }};
+ GLib.OutputVector vector = { encrypted_data, encrypted_data.length };
+ GLib.OutputVector[] vectors = { vector };
Nice.OutputMessage message = { vectors };
Nice.OutputMessage[] messages = { message };
agent.send_messages_nonblocking(stream_id, component_id, messages);
} else {
- GLib.OutputVector[] vectors = {{ datagram.get_data(), datagram.get_size() }};
+ GLib.OutputVector vector = { datagram.get_data(), datagram.get_size() };
+ GLib.OutputVector[] vectors = { vector };
Nice.OutputMessage message = { vectors };
Nice.OutputMessage[] messages = { message };
agent.send_messages_nonblocking(stream_id, component_id, messages);