summaryrefslogtreecommitdiffstats
path: root/gst/udp/gstmultiudpsink.c
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar.iglesias@gmail.com>2009-03-13 18:28:59 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2009-03-13 18:28:59 +0100
commit469aced5810b094f05d628d1d447b6430ae0d483 (patch)
tree9274017c566c5a71a29451bf15cfb2b451be1ad4 /gst/udp/gstmultiudpsink.c
parenta32581abeea9264bba014f5e03063ee60f9c4bdb (diff)
udpsrc: Add network interface selection
Add network interface selection when joining multicast groups. Useful when using the udpsrc on multihomed hosts. Fixes #575234. API: GstUDPSrc::multicast-iface
Diffstat (limited to 'gst/udp/gstmultiudpsink.c')
-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 a4821ffe..9cfea957 100644
--- a/gst/udp/gstmultiudpsink.c
+++ b/gst/udp/gstmultiudpsink.c
@@ -635,7 +635,7 @@ gst_multiudpsink_init_send (GstMultiUDPSink * sink)
for (clients = sink->clients; clients; clients = g_list_next (clients)) {
client = (GstUDPClient *) clients->data;
if (sink->auto_multicast && gst_udp_is_multicast (&client->theiraddr))
- gst_udp_join_group (*(client->sock), &client->theiraddr);
+ gst_udp_join_group (*(client->sock), &client->theiraddr, NULL);
}
return TRUE;
@@ -687,7 +687,7 @@ gst_multiudpsink_add_internal (GstMultiUDPSink * sink, const gchar * host,
GST_DEBUG_OBJECT (sink, "multicast address detected");
if (sink->auto_multicast) {
GST_DEBUG_OBJECT (sink, "joining multicast group");
- gst_udp_join_group (*(client->sock), &client->theiraddr);
+ gst_udp_join_group (*(client->sock), &client->theiraddr, NULL);
}
} else {
GST_DEBUG_OBJECT (sink, "normal address detected");