mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
[242/906] Fix crash in filters when going to NULL with no display
This commit is contained in:
parent
f18ba293cb
commit
3d54d22894
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue