mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 11:29:55 +00:00
Fix the case where a new surface is provided without destroying the previous one. We have never observed this scenario, tough.
This commit is contained in:
parent
a62471700f
commit
349cad43cc
1 changed files with 1 additions and 0 deletions
|
@ -284,6 +284,7 @@ static void gst_native_surface_init (JNIEnv *env, jobject thiz, jobject surface)
|
|||
return;
|
||||
} else {
|
||||
GST_DEBUG ("Released previous native window %p", data->native_window);
|
||||
data->initialized = FALSE;
|
||||
}
|
||||
}
|
||||
data->native_window = new_native_window;
|
||||
|
|
Loading…
Reference in a new issue