diff options
author | Patricia Muscalu <patricia@axis.com> | 2017-01-10 08:34:50 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2017-01-10 10:38:13 +0000 |
commit | fb7833245de53bd6e409f5faf228be7899ce933f (patch) | |
tree | 51c916b163aa746d7980782155dffd88bde2f0cb | |
parent | f47e6ab9f69ec1c77f8875ca41ee5ff268ab06ab (diff) |
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
-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; |