[351/906] allow to switch xoverlay while being in paused state

This commit is contained in:
Julien Isorce 2009-06-09 20:35:26 +02:00 committed by Matthew Waters
parent ae4f96ec93
commit 2680375248

View file

@ -606,9 +606,17 @@ gst_glimage_sink_expose (GstXOverlay * overlay)
GstGLImageSink *glimage_sink = GST_GLIMAGE_SINK (overlay);
//redisplay opengl scene
if (glimage_sink->display && glimage_sink->window_id)
if (glimage_sink->display && glimage_sink->window_id) {
if (glimage_sink->window_id != glimage_sink->new_window_id) {
glimage_sink->window_id = glimage_sink->new_window_id;
gst_gl_display_set_window_id (glimage_sink->display,
glimage_sink->window_id);
}
gst_gl_display_redisplay (glimage_sink->display, 0, 0, 0,
glimage_sink->keep_aspect_ratio);
}
}