mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 13:08:49 +00:00
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:
parent
f47e6ab9f6
commit
fb7833245d
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue