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