mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
gl/tests: update glwindow api change
This commit is contained in:
parent
27e5e0c2df
commit
75b808d072
2 changed files with 11 additions and 5 deletions
|
@ -259,7 +259,8 @@ GST_START_TEST (test_share)
|
||||||
error ? error->message : "Unknown Error");
|
error ? error->message : "Unknown Error");
|
||||||
|
|
||||||
/* make the window visible */
|
/* 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_gl_window_send_message (other_window, GST_GL_WINDOW_CB (init), context);
|
||||||
|
|
||||||
|
@ -360,7 +361,8 @@ GST_START_TEST (test_wrapped_context)
|
||||||
error ? error->message : "Unknown Error");
|
error ? error->message : "Unknown Error");
|
||||||
|
|
||||||
/* make the window visible */
|
/* 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_gl_window_send_message (other_window, GST_GL_WINDOW_CB (init), context);
|
||||||
|
|
||||||
|
|
|
@ -254,7 +254,8 @@ GST_START_TEST (test_upload_data)
|
||||||
|
|
||||||
gst_buffer_unmap (outbuf, &map_info);
|
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_window_send_message (window, GST_GL_WINDOW_CB (init), context);
|
||||||
|
|
||||||
|
@ -307,7 +308,8 @@ GST_START_TEST (test_upload_buffer)
|
||||||
gst_gl_context_get_error ());
|
gst_gl_context_get_error ());
|
||||||
fail_unless (GST_IS_BUFFER (outbuf));
|
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);
|
gst_gl_window_send_message (window, GST_GL_WINDOW_CB (init), context);
|
||||||
|
|
||||||
while (i < 2) {
|
while (i < 2) {
|
||||||
|
@ -360,7 +362,9 @@ GST_START_TEST (test_upload_meta_producer)
|
||||||
fail_if (res == FALSE, "Failed to upload GstVideoGLTextureUploadMeta\n");
|
fail_if (res == FALSE, "Failed to upload GstVideoGLTextureUploadMeta\n");
|
||||||
|
|
||||||
tex_id = tex_ids[0];
|
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);
|
gst_gl_window_send_message (window, GST_GL_WINDOW_CB (init), context);
|
||||||
|
|
||||||
while (i < 2) {
|
while (i < 2) {
|
||||||
|
|
Loading…
Reference in a new issue