mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
rtsp-stream: Don't bind the sockets to multicast addresses
This works on Linux but fails completely on Windows. You're supposed to bind to ANY and then join the multicast group. https://bugzilla.gnome.org/show_bug.cgi?id=757488
This commit is contained in:
parent
ca1d987a9d
commit
bcee3202d3
1 changed files with 9 additions and 0 deletions
|
@ -1261,6 +1261,15 @@ again:
|
|||
|
||||
g_clear_object (&inetaddr);
|
||||
inetaddr = g_inet_address_new_from_string (addr->address);
|
||||
|
||||
/* Don't bind to multicast addresses, this does not work on
|
||||
* Windows. You're supposed to bind to ANY and then join the
|
||||
* multicast group, which udpsrc/sink does for us already.
|
||||
*/
|
||||
if (g_inet_address_get_is_multicast (inetaddr)) {
|
||||
g_object_unref (inetaddr);
|
||||
inetaddr = g_inet_address_new_any (family);
|
||||
}
|
||||
} else {
|
||||
if (tmp_rtp != 0) {
|
||||
tmp_rtp += 2;
|
||||
|
|
Loading…
Reference in a new issue