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
@ -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…
x
Reference in New Issue
Block a user