From 349cad43cc9c38be22c98550c277fbf416937c71 Mon Sep 17 00:00:00 2001 From: Xavi Artigas Date: Tue, 23 Oct 2012 12:30:25 +0200 Subject: [PATCH] Fix the case where a new surface is provided without destroying the previous one. We have never observed this scenario, tough. --- gst-sdk/tutorials/android-tutorial-3/jni/tutorial-3.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-sdk/tutorials/android-tutorial-3/jni/tutorial-3.c b/gst-sdk/tutorials/android-tutorial-3/jni/tutorial-3.c index 04bd09b7fc..f9552bcce1 100644 --- a/gst-sdk/tutorials/android-tutorial-3/jni/tutorial-3.c +++ b/gst-sdk/tutorials/android-tutorial-3/jni/tutorial-3.c @@ -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;