summaryrefslogtreecommitdiff
path: root/gst/udp
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2013-11-07 09:49:55 +0100
committerSebastian Dröge <sebastian@centricular.com>2013-11-07 09:50:39 +0100
commitfd89e36c8a1f58f36f35e492bd2a9790f73fe211 (patch)
treeda5ac5179520d3a7f1c33d976360f7fa9b4e4dd2 /gst/udp
parent619f4f5c5aa9f02056156fa700300b9e925d401c (diff)
multiudpsink: Also use the bind-port property if no bind-address was given
Diffstat (limited to 'gst/udp')
-rw-r--r--gst/udp/gstmultiudpsink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/udp/gstmultiudpsink.c b/gst/udp/gstmultiudpsink.c
index f180fb5ac..51fb5258b 100644
--- a/gst/udp/gstmultiudpsink.c
+++ b/gst/udp/gstmultiudpsink.c
@@ -1052,7 +1052,7 @@ gst_multiudpsink_start (GstBaseSink * bsink)
goto no_socket;
bind_iaddr = g_inet_address_new_any (G_SOCKET_FAMILY_IPV4);
- bind_addr = g_inet_socket_address_new (bind_iaddr, 0);
+ bind_addr = g_inet_socket_address_new (bind_iaddr, sink->bind_port);
g_socket_bind (sink->used_socket, bind_addr, TRUE, &err);
g_object_unref (bind_addr);
g_object_unref (bind_iaddr);
@@ -1067,7 +1067,7 @@ gst_multiudpsink_start (GstBaseSink * bsink)
g_clear_error (&err);
} else {
bind_iaddr = g_inet_address_new_any (G_SOCKET_FAMILY_IPV6);
- bind_addr = g_inet_socket_address_new (bind_iaddr, 0);
+ bind_addr = g_inet_socket_address_new (bind_iaddr, sink->bind_port);
g_socket_bind (sink->used_socket_v6, bind_addr, TRUE, &err);
g_object_unref (bind_addr);
g_object_unref (bind_iaddr);