rtsp-stream: check for NULL transports prior to ref'ing

This commit is contained in:
Mark Nauwelaerts 2020-01-11 22:58:48 +01:00
parent e0a4355d6b
commit 0ed32e0d53

View file

@ -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);