rtmp2: Add a g_return_val_if_fail

This commit is contained in:
Jan Alexander Steffens (heftig) 2020-02-12 16:55:45 +01:00 committed by GStreamer Merge Bot
parent 03c3257f0f
commit 279e3c333c

View file

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