mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
rtsp-stream: check for NULL transports prior to ref'ing
This commit is contained in:
parent
e0a4355d6b
commit
0ed32e0d53
1 changed files with 2 additions and 1 deletions
|
@ -2594,7 +2594,8 @@ send_tcp_message (GstRTSPStream * stream, gint idx)
|
|||
n_messages += 1;
|
||||
|
||||
transports = priv->tr_cache;
|
||||
g_ptr_array_ref (transports);
|
||||
if (transports)
|
||||
g_ptr_array_ref (transports);
|
||||
|
||||
g_mutex_unlock (&priv->lock);
|
||||
|
||||
|
|
Loading…
Reference in a new issue