glimagesink: expose should do redisplay all the time

when using internal window, window resize should work
when pause state, but expose only do redisplay when
window_id is valid. So expose should do redisplay all
the time.

https://bugzilla.gnome.org/show_bug.cgi?id=787394
This commit is contained in:
Haihua Hu 2017-09-11 16:11:19 +08:00 committed by Matthew Waters
parent 64526327c9
commit 5f4ee3909e

View file

@ -1789,9 +1789,9 @@ gst_glimage_sink_expose (GstVideoOverlay * overlay)
GstGLImageSink *glimage_sink = GST_GLIMAGE_SINK (overlay);
/* redisplay opengl scene */
if (glimage_sink->display && glimage_sink->window_id) {
if (glimage_sink->window_id != glimage_sink->new_window_id) {
if (glimage_sink->display) {
if (glimage_sink->window_id
&& glimage_sink->window_id != glimage_sink->new_window_id) {
GstGLWindow *window = gst_gl_context_get_window (glimage_sink->context);
glimage_sink->window_id = glimage_sink->new_window_id;