summaryrefslogtreecommitdiff
path: root/tests/examples
diff options
context:
space:
mode:
authorJulien Isorce <j.isorce@samsung.com>2015-03-14 15:37:05 +0000
committerJulien Isorce <j.isorce@samsung.com>2015-03-14 17:42:40 +0000
commit94d4ae1840c652862b8caa505d525a7c4873ea38 (patch)
tree641b661d277efd18097ea9adfbe4a36677096b9c /tests/examples
parentfa61e8e4ce1687c766710eed49cb5f00c95bd626 (diff)
downloadgstreamer-plugins-bad-94d4ae1840c652862b8caa505d525a7c4873ea38.tar.gz
sdlshare: use glupload and unmap frame
Diffstat (limited to 'tests/examples')
-rw-r--r--tests/examples/gl/sdl/sdlshare.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/examples/gl/sdl/sdlshare.c b/tests/examples/gl/sdl/sdlshare.c
index 6f105e69d..40f0af6e7 100644
--- a/tests/examples/gl/sdl/sdlshare.c
+++ b/tests/examples/gl/sdl/sdlshare.c
@@ -129,6 +129,8 @@ DrawGLScene (GstBuffer * buf)
// swap buffers to display, since we're double buffered.
SDL_GL_SwapBuffers ();
+
+ gst_video_frame_unmap (&v_frame);
}
static gboolean
@@ -337,7 +339,7 @@ main (int argc, char **argv)
pipeline =
GST_PIPELINE (gst_parse_launch
("videotestsrc ! video/x-raw, width=320, height=240, framerate=(fraction)30/1 ! "
- "gleffects effect=5 ! fakesink sync=1", NULL));
+ "glupload ! gleffects effect=5 ! fakesink sync=1", NULL));
bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline));
gst_bus_add_signal_watch (bus);