mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
[351/906] allow to switch xoverlay while being in paused state
This commit is contained in:
parent
ae4f96ec93
commit
2680375248
1 changed files with 9 additions and 1 deletions
|
@ -606,10 +606,18 @@ 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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static gboolean
|
||||
|
|
Loading…
Reference in a new issue