diff options
-rw-r--r-- | gst/rtsp-server/rtsp-stream.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/rtsp-server/rtsp-stream.c b/gst/rtsp-server/rtsp-stream.c index 6af69b4..445b924 100644 --- a/gst/rtsp-server/rtsp-stream.c +++ b/gst/rtsp-server/rtsp-stream.c @@ -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; |