mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-01 06:01:04 +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;
|
return;
|
||||||
} else {
|
} else {
|
||||||
GST_DEBUG ("Released previous native window %p", data->native_window);
|
GST_DEBUG ("Released previous native window %p", data->native_window);
|
||||||
|
data->initialized = FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
data->native_window = new_native_window;
|
data->native_window = new_native_window;
|
||||||
|
|
Loading…
Reference in a new issue