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:
Julien Isorce 2014-11-11 23:43:42 +00:00
parent bc7dbd7b51
commit 7d0de0577a

View file

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