error ? error->message : "Unknown Error");
/* make the window visible */
- gst_gl_window_draw (window, 320, 240);
+ gst_gl_window_set_preferred_size (window, 320, 240);
+ gst_gl_window_draw (window);
gst_gl_window_send_message (other_window, GST_GL_WINDOW_CB (init), context);
error ? error->message : "Unknown Error");
/* make the window visible */
- gst_gl_window_draw (window, 320, 240);
+ gst_gl_window_set_preferred_size (window, 320, 240);
+ gst_gl_window_draw (window);
gst_gl_window_send_message (other_window, GST_GL_WINDOW_CB (init), context);
gst_buffer_unmap (outbuf, &map_info);
- gst_gl_window_draw (window, WIDTH, HEIGHT);
+ gst_gl_window_set_preferred_size (window, WIDTH, HEIGHT);
+ gst_gl_window_draw (window);
gst_gl_window_send_message (window, GST_GL_WINDOW_CB (init), context);
gst_gl_context_get_error ());
fail_unless (GST_IS_BUFFER (outbuf));
- gst_gl_window_draw (window, WIDTH, HEIGHT);
+ gst_gl_window_set_preferred_size (window, WIDTH, HEIGHT);
+ gst_gl_window_draw (window);
gst_gl_window_send_message (window, GST_GL_WINDOW_CB (init), context);
while (i < 2) {
fail_if (res == FALSE, "Failed to upload GstVideoGLTextureUploadMeta\n");
tex_id = tex_ids[0];
- gst_gl_window_draw (window, WIDTH, HEIGHT);
+
+ gst_gl_window_set_preferred_size (window, WIDTH, HEIGHT);
+ gst_gl_window_draw (window);
gst_gl_window_send_message (window, GST_GL_WINDOW_CB (init), context);
while (i < 2) {