projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9396891
)
sdlshare: use glupload and unmap frame
author
Julien Isorce
<j.isorce@samsung.com>
Sat, 14 Mar 2015 15:37:05 +0000
(15:37 +0000)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sat, 9 Dec 2017 19:31:58 +0000
(19:31 +0000)
tests/examples/gl/sdl/sdlshare.c
patch
|
blob
|
history
diff --git
a/tests/examples/gl/sdl/sdlshare.c
b/tests/examples/gl/sdl/sdlshare.c
index
6f105e6
..
40f0af6
100644
(file)
--- 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));
+ "gl
upload ! gl
effects effect=5 ! fakesink sync=1", NULL));
bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline));
gst_bus_add_signal_watch (bus);