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:
Xavi Artigas 2012-10-23 12:30:25 +02:00
parent a62471700f
commit 349cad43cc

View file

@ -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;