mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:06:17 +00:00
gl: do not raise a critical msg if the backend does not handle window events
Fix "assertion 'window_class->handle_events != NULL' failed" if not using a X11 window.
This commit is contained in:
parent
af9b73043e
commit
af59b771fd
1 changed files with 2 additions and 2 deletions
|
@ -991,7 +991,7 @@ gst_gl_window_handle_events (GstGLWindow * window, gboolean handle_events)
|
||||||
|
|
||||||
g_return_if_fail (GST_GL_IS_WINDOW (window));
|
g_return_if_fail (GST_GL_IS_WINDOW (window));
|
||||||
window_class = GST_GL_WINDOW_GET_CLASS (window);
|
window_class = GST_GL_WINDOW_GET_CLASS (window);
|
||||||
g_return_if_fail (window_class->handle_events != NULL);
|
|
||||||
|
|
||||||
window_class->handle_events (window, handle_events);
|
if (window_class->handle_events)
|
||||||
|
window_class->handle_events (window, handle_events);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue