mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +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
bc7dbd7b51
commit
7d0de0577a
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));
|
||||
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