Commit af59b771 authored by Julien Isorce's avatar Julien Isorce Committed by Tim-Philipp Müller

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.
parent af9b7304
......@@ -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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment