gl/caopengllayersink: Actually unset caps_change flag after resize

Otherwise, the sink would execute "on_resize" for each frame.

https://bugzilla.gnome.org/show_bug.cgi?id=765194
This commit is contained in:
Heinrich Fink 2016-04-17 15:45:41 +01:00 committed by Tim-Philipp Müller
parent caa9ad59e6
commit 981beba52d

View file

@ -1035,7 +1035,7 @@ gst_ca_opengl_layer_sink_on_draw (GstCAOpenGLLayerSink * ca_sink)
gst_ca_opengl_layer_sink_on_resize (ca_sink, ca_sink->window_width,
ca_sink->window_height);
GST_CA_OPENGL_LAYER_SINK_LOCK (ca_sink);
ca_sink->caps_change = TRUE;
ca_sink->caps_change = FALSE;
}
sync_meta = gst_buffer_get_gl_sync_meta (ca_sink->stored_sync);