mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
[816/906] x11: fix make check segfault
This commit is contained in:
parent
d10ccfb795
commit
e29d826b0a
1 changed files with 5 additions and 4 deletions
|
@ -620,8 +620,6 @@ gst_gl_window_x11_handle_event (GstGLWindowX11 * window_x11)
|
||||||
gboolean ret = TRUE;
|
gboolean ret = TRUE;
|
||||||
|
|
||||||
window = GST_GL_WINDOW (window_x11);
|
window = GST_GL_WINDOW (window_x11);
|
||||||
context = gst_gl_window_get_context (window);
|
|
||||||
context_class = GST_GL_CONTEXT_GET_CLASS (context);
|
|
||||||
|
|
||||||
if (g_main_loop_is_running (window_x11->loop)
|
if (g_main_loop_is_running (window_x11->loop)
|
||||||
&& XPending (window_x11->device)) {
|
&& XPending (window_x11->device)) {
|
||||||
|
@ -669,8 +667,13 @@ gst_gl_window_x11_handle_event (GstGLWindowX11 * window_x11)
|
||||||
|
|
||||||
case Expose:
|
case Expose:
|
||||||
if (window->draw) {
|
if (window->draw) {
|
||||||
|
context = gst_gl_window_get_context (window);
|
||||||
|
context_class = GST_GL_CONTEXT_GET_CLASS (context);
|
||||||
|
|
||||||
window->draw (window->draw_data);
|
window->draw (window->draw_data);
|
||||||
context_class->swap_buffers (context);
|
context_class->swap_buffers (context);
|
||||||
|
|
||||||
|
gst_object_unref (context);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -705,8 +708,6 @@ gst_gl_window_x11_handle_event (GstGLWindowX11 * window_x11)
|
||||||
} // switch
|
} // switch
|
||||||
} // while running
|
} // while running
|
||||||
|
|
||||||
gst_object_unref (context);
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue