diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2013-07-16 16:17:11 +0200 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2013-07-16 16:17:11 +0200 |
commit | 8e5a9daed5a65eb3c6c9bfbc05ed049d9b1ba82e (patch) | |
tree | db3d4b357322faf25d05eb5c8e5a60b384841fa1 | |
parent | deb9dfdee3016b5f768630826306423c3fd0be59 (diff) |
gltestsrc: Fix usage of FBO API
-rw-r--r-- | gst/gl/gstgltestsrc.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gst/gl/gstgltestsrc.c b/gst/gl/gstgltestsrc.c index 39deca4..f5e2708 100644 --- a/gst/gl/gstgltestsrc.c +++ b/gst/gl/gstgltestsrc.c @@ -88,8 +88,7 @@ static gboolean gst_gl_test_src_stop (GstBaseSrc * basesrc); static gboolean gst_gl_test_src_decide_allocation (GstBaseSrc * basesrc, GstQuery * query); -static void gst_gl_test_src_callback (gint width, gint height, guint texture, - gpointer stuff); +static void gst_gl_test_src_callback (gpointer stuff); #define GST_TYPE_GL_TEST_SRC_PATTERN (gst_gl_test_src_pattern_get_type ()) static GType @@ -489,9 +488,8 @@ gst_gl_test_src_fill (GstPushSrc * psrc, GstBuffer * buffer) gst_buffer_replace (&src->buffer, buffer); //blocking call, generate a FBO - if (!gst_gl_display_use_fbo (src->display, width, height, src->fbo, + if (!gst_gl_display_use_fbo_v2 (src->display, width, height, src->fbo, src->depthbuffer, out_tex, gst_gl_test_src_callback, - 0, 0, 0, 0, width, 0, height, GST_GL_DISPLAY_PROJECTION_ORTHO2D, (gpointer) src)) { goto not_negotiated; } @@ -646,8 +644,7 @@ gst_gl_test_src_decide_allocation (GstBaseSrc * basesrc, GstQuery * query) //opengl scene static void -gst_gl_test_src_callback (gint width, gint height, guint texture, - gpointer stuff) +gst_gl_test_src_callback (gpointer stuff) { GstGLTestSrc *src = GST_GL_TEST_SRC (stuff); |