rtsp-stream: corrected if-statement in _get_server_port()

This bug was accidentally introduced while fixing a segfault
in _get_server_port() function.

https://bugzilla.gnome.org/show_bug.cgi?id=776345
This commit is contained in:
Patricia Muscalu 2017-01-10 08:34:50 +01:00 committed by Tim-Philipp Müller
parent f47e6ab9f6
commit fb7833245d

View file

@ -1531,8 +1531,8 @@ gst_rtsp_stream_get_server_port (GstRTSPStream * stream,
}
g_mutex_lock (&priv->lock);
if (family == G_SOCKET_FAMILY_IPV4 && priv->server_addr_v4) {
if (server_port) {
if (family == G_SOCKET_FAMILY_IPV4) {
if (server_port && priv->server_addr_v4) {
server_port->min = priv->server_addr_v4->port;
server_port->max =
priv->server_addr_v4->port + priv->server_addr_v4->n_ports - 1;