gl/caopengllayersink: Actually unset caps_change flag after resize
authorHeinrich Fink <hfink@toolsonair.com>
Sun, 17 Apr 2016 14:45:41 +0000 (15:45 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:19 +0000 (19:32 +0000)
Otherwise, the sink would execute "on_resize" for each frame.

https://bugzilla.gnome.org/show_bug.cgi?id=765194

ext/gl/caopengllayersink.m

index b923d220f1955c7708801274dbd88f9423295f66..000511577b164204e2ee6984493b54f89dff5d12 100644 (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);