From 279e3c333cdf731cf66b1b4d16d099257d273cd2 Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Wed, 12 Feb 2020 16:55:45 +0100 Subject: [PATCH] rtmp2: Add a g_return_val_if_fail --- gst/rtmp2/rtmp/rtmpconnection.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/rtmp2/rtmp/rtmpconnection.c b/gst/rtmp2/rtmp/rtmpconnection.c index dcb5d594f3..633ea1f1b9 100644 --- a/gst/rtmp2/rtmp/rtmpconnection.c +++ b/gst/rtmp2/rtmp/rtmpconnection.c @@ -926,6 +926,8 @@ gst_rtmp_connection_send_command (GstRtmpConnection * connection, guint8 *data; gsize size; + g_return_val_if_fail (GST_IS_RTMP_CONNECTION (connection), 0); + if (connection->thread != g_thread_self ()) { GST_ERROR_OBJECT (connection, "Called from wrong thread"); }