[242/906] Fix crash in filters when going to NULL with no display

This commit is contained in:
Julien Isorce 2008-10-13 23:14:27 +02:00 committed by Matthew Waters
parent 9771af8624
commit 353a06d9a0

View file

@ -159,11 +159,11 @@ gst_gl_filter_reset (GstGLFilter* filter)
{
GstGLFilterClass* filter_class = GST_GL_FILTER_GET_CLASS (filter);
if (filter->display)
{
if (filter_class->onReset)
filter_class->onReset (filter);
if (filter->display)
{
if (filter_class->display_reset_cb != NULL) {
gst_gl_display_thread_add (filter->display, gst_gl_filter_stop_gl, filter);
}