aboutsummaryrefslogtreecommitdiff
path: root/plugins/ice/src/transport_parameters.vala
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2021-12-23 06:39:18 +0100
committerMarvin W <git@larma.de>2021-12-23 07:06:07 +0100
commit1c4765281443e2a184157f319825c9b68665f9f5 (patch)
treea7e76078ba8f5308abaa0bf59a87f95298afd284 /plugins/ice/src/transport_parameters.vala
parentd02c5bc55d4325de308a592e8980139aa0634215 (diff)
downloaddino-1c4765281443e2a184157f319825c9b68665f9f5.tar.gz
dino-1c4765281443e2a184157f319825c9b68665f9f5.zip
Fix build with older Vala compilers
- Older versions seem to assume a wrong type for Nice messages - Older versions have broken bindings for Gst.Value.set_fraction
Diffstat (limited to 'plugins/ice/src/transport_parameters.vala')
-rw-r--r--plugins/ice/src/transport_parameters.vala6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/ice/src/transport_parameters.vala b/plugins/ice/src/transport_parameters.vala
index f684e411..73cf6166 100644
--- a/plugins/ice/src/transport_parameters.vala
+++ b/plugins/ice/src/transport_parameters.vala
@@ -45,11 +45,13 @@ public class Dino.Plugins.Ice.TransportParameters : JingleIceUdp.IceUdpTransport
if (encrypted_data == null) return;
// TODO: Nonblocking might require certain libnice versions?
GLib.OutputVector[] vectors = {{ encrypted_data, encrypted_data.length }};
- Nice.OutputMessage[] messages = {{ vectors }};
+ 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() }};
- Nice.OutputMessage[] messages = {{ vectors }};
+ Nice.OutputMessage message = { vectors };
+ Nice.OutputMessage[] messages = { message };
agent.send_messages_nonblocking(stream_id, component_id, messages);
}
bytes_sent += datagram.length;