From e4fe0e4ae206adfdef4187d13a5f391fdd5e8464 Mon Sep 17 00:00:00 2001 From: Haihua Hu Date: Tue, 19 Apr 2016 10:51:14 +0800 Subject: [PATCH] glimagesink: need to clean window_id when state change form READY to NULL When application change pipeline state NULL->READY and then READY->NULL, glimagesink will not clear glsink->window_id. After that, when application change state NULL->READY, the new_window_id is equal to window_id, glimagesink will not set window handle. It will use the internal window but not the window create by application. https://bugzilla.gnome.org/show_bug.cgi?id=765241 --- ext/gl/gstglimagesink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/gl/gstglimagesink.c b/ext/gl/gstglimagesink.c index 4db87e4979..984595606d 100644 --- a/ext/gl/gstglimagesink.c +++ b/ext/gl/gstglimagesink.c @@ -1045,6 +1045,8 @@ gst_glimage_sink_change_state (GstElement * element, GstStateChange transition) gst_object_unref (glimage_sink->context); glimage_sink->context = NULL; } + + glimage_sink->window_id = 0; if (glimage_sink->other_context) { gst_object_unref (glimage_sink->other_context);