mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 06:16:36 +00:00
rtmp2: Add a g_return_val_if_fail
This commit is contained in:
parent
03c3257f0f
commit
279e3c333c
1 changed files with 2 additions and 0 deletions
|
@ -926,6 +926,8 @@ gst_rtmp_connection_send_command (GstRtmpConnection * connection,
|
||||||
guint8 *data;
|
guint8 *data;
|
||||||
gsize size;
|
gsize size;
|
||||||
|
|
||||||
|
g_return_val_if_fail (GST_IS_RTMP_CONNECTION (connection), 0);
|
||||||
|
|
||||||
if (connection->thread != g_thread_self ()) {
|
if (connection->thread != g_thread_self ()) {
|
||||||
GST_ERROR_OBJECT (connection, "Called from wrong thread");
|
GST_ERROR_OBJECT (connection, "Called from wrong thread");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue