diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2016-07-20 15:35:44 -0400 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-09-05 13:25:51 +0300 |
commit | 82a618c2e6a8297b573cf3dfba0a32010784f594 (patch) | |
tree | b87acd2d6e4a1f844916e218896dcea608c633a9 | |
parent | 55a1df5724bc523ab985e42111dd0d90479339a0 (diff) |
stream: rename addr_v4/6 to mcast_addr_v4/6 for clarity
https://bugzilla.gnome.org/show_bug.cgi?id=766612
-rw-r--r-- | gst/rtsp-server/rtsp-stream.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/gst/rtsp-server/rtsp-stream.c b/gst/rtsp-server/rtsp-stream.c index 5a564c6..081fc14 100644 --- a/gst/rtsp-server/rtsp-stream.c +++ b/gst/rtsp-server/rtsp-stream.c @@ -135,8 +135,8 @@ struct _GstRTSPStreamPrivate /* multicast addresses */ GstRTSPAddressPool *pool; - GstRTSPAddress *addr_v4; - GstRTSPAddress *addr_v6; + GstRTSPAddress *mcast_addr_v4; + GstRTSPAddress *mcast_addr_v6; gboolean have_ipv4_mcast; gboolean have_ipv6_mcast; @@ -285,10 +285,10 @@ gst_rtsp_stream_finalize (GObject * obj) /* we really need to be unjoined now */ g_return_if_fail (priv->joined_bin == NULL); - if (priv->addr_v4) - gst_rtsp_address_free (priv->addr_v4); - if (priv->addr_v6) - gst_rtsp_address_free (priv->addr_v6); + if (priv->mcast_addr_v4) + gst_rtsp_address_free (priv->mcast_addr_v4); + if (priv->mcast_addr_v6) + gst_rtsp_address_free (priv->mcast_addr_v6); if (priv->server_addr_v4) gst_rtsp_address_free (priv->server_addr_v4); if (priv->server_addr_v6) @@ -953,10 +953,10 @@ gst_rtsp_stream_get_multicast_address (GstRTSPStream * stream, if (family == G_SOCKET_FAMILY_IPV6) { flags = GST_RTSP_ADDRESS_FLAG_IPV6; - addrp = &priv->addr_v6; + addrp = &priv->mcast_addr_v6; } else { flags = GST_RTSP_ADDRESS_FLAG_IPV4; - addrp = &priv->addr_v4; + addrp = &priv->mcast_addr_v4; } g_mutex_lock (&priv->lock); @@ -1031,9 +1031,9 @@ gst_rtsp_stream_reserve_address (GstRTSPStream * stream, } if (family == G_SOCKET_FAMILY_IPV6) - addrp = &priv->addr_v6; + addrp = &priv->mcast_addr_v6; else - addrp = &priv->addr_v4; + addrp = &priv->mcast_addr_v4; g_mutex_lock (&priv->lock); if (*addrp == NULL) { @@ -1502,8 +1502,8 @@ gst_rtsp_stream_allocate_udp_sockets (GstRTSPStream * stream, goto done; priv->have_ipv4_mcast = alloc_ports_one_family (stream, G_SOCKET_FAMILY_IPV4, - priv->udpsrc_mcast_v4, &priv->server_port_v4, ct, &priv->addr_v4, - use_client_settings); + priv->udpsrc_mcast_v4, &priv->server_port_v4, ct, + &priv->mcast_addr_v4, use_client_settings); } else { priv->have_ipv4 = alloc_ports_one_family (stream, G_SOCKET_FAMILY_IPV4, priv->udpsrc_v4, @@ -1516,8 +1516,8 @@ gst_rtsp_stream_allocate_udp_sockets (GstRTSPStream * stream, goto done; priv->have_ipv6_mcast = alloc_ports_one_family (stream, G_SOCKET_FAMILY_IPV6, - priv->udpsrc_mcast_v6, &priv->server_port_v6, ct, &priv->addr_v6, - use_client_settings); + priv->udpsrc_mcast_v6, &priv->server_port_v6, ct, + &priv->mcast_addr_v6, use_client_settings); } else { if (priv->have_ipv6) goto done; |