diff --git a/gst-libs/gst/gl/gstglfilter.c b/gst-libs/gst/gl/gstglfilter.c index 6680f4971e..cfe002e8df 100644 --- a/gst-libs/gst/gl/gstglfilter.c +++ b/gst-libs/gst/gl/gstglfilter.c @@ -159,11 +159,11 @@ gst_gl_filter_reset (GstGLFilter* filter) { GstGLFilterClass* filter_class = GST_GL_FILTER_GET_CLASS (filter); - if (filter_class->onReset) - filter_class->onReset (filter); - if (filter->display) { + if (filter_class->onReset) + filter_class->onReset (filter); + if (filter_class->display_reset_cb != NULL) { gst_gl_display_thread_add (filter->display, gst_gl_filter_stop_gl, filter); }