Commit 0f902835 authored by Julien Isorce's avatar Julien Isorce Committed by Tim-Philipp Müller

sdlshare: use glupload and unmap frame

parent 93968916
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment