mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
udpsink: bind to the given interface
Actually call BINDTODEVICE to bind to the interface as given by the property. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=702819
This commit is contained in:
parent
943520382f
commit
35f6e79b94
1 changed files with 13 additions and 0 deletions
|
@ -1132,6 +1132,19 @@ gst_multiudpsink_start (GstBaseSink * bsink)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef SO_BINDTODEVICE
|
||||
if (sink->multi_iface) {
|
||||
if (sink->used_socket) {
|
||||
setsockopt (g_socket_get_fd (sink->used_socket), SOL_SOCKET,
|
||||
SO_BINDTODEVICE, sink->multi_iface, strlen (sink->multi_iface));
|
||||
}
|
||||
if (sink->used_socket_v6) {
|
||||
setsockopt (g_socket_get_fd (sink->used_socket_v6), SOL_SOCKET,
|
||||
SO_BINDTODEVICE, sink->multi_iface, strlen (sink->multi_iface));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (sink->used_socket)
|
||||
g_socket_set_broadcast (sink->used_socket, TRUE);
|
||||
if (sink->used_socket_v6)
|
||||
|
|
Loading…
Reference in a new issue