mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
[242/906] Fix crash in filters when going to NULL with no display
This commit is contained in:
parent
9771af8624
commit
353a06d9a0
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->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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue