rtmp2: Add a g_return_val_if_fail
This commit is contained in:
parent
03c3257f0f
commit
279e3c333c
@ -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…
x
Reference in New Issue
Block a user