mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
rtsp-stream: Don't mix IPv4 and IPv6 addresses
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=726362
This commit is contained in:
parent
2c7ffe97ca
commit
0b617dd5bd
1 changed files with 4 additions and 4 deletions
|
@ -793,10 +793,10 @@ gst_rtsp_stream_get_multicast_address (GstRTSPStream * stream,
|
|||
|
||||
if (family == G_SOCKET_FAMILY_IPV6) {
|
||||
flags = GST_RTSP_ADDRESS_FLAG_IPV6;
|
||||
addrp = &priv->addr_v4;
|
||||
addrp = &priv->addr_v6;
|
||||
} else {
|
||||
flags = GST_RTSP_ADDRESS_FLAG_IPV4;
|
||||
addrp = &priv->addr_v6;
|
||||
addrp = &priv->addr_v4;
|
||||
}
|
||||
|
||||
g_mutex_lock (&priv->lock);
|
||||
|
@ -871,9 +871,9 @@ gst_rtsp_stream_reserve_address (GstRTSPStream * stream,
|
|||
}
|
||||
|
||||
if (family == G_SOCKET_FAMILY_IPV6)
|
||||
addrp = &priv->addr_v4;
|
||||
else
|
||||
addrp = &priv->addr_v6;
|
||||
else
|
||||
addrp = &priv->addr_v4;
|
||||
|
||||
g_mutex_lock (&priv->lock);
|
||||
if (*addrp == NULL) {
|
||||
|
|
Loading…
Reference in a new issue