mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-17 22:06:41 +00:00
sdlshare: use glupload and unmap frame
This commit is contained in:
parent
fa61e8e4ce
commit
94d4ae1840
1 changed files with 3 additions and 1 deletions
|
@ -129,6 +129,8 @@ DrawGLScene (GstBuffer * buf)
|
||||||
|
|
||||||
// swap buffers to display, since we're double buffered.
|
// swap buffers to display, since we're double buffered.
|
||||||
SDL_GL_SwapBuffers ();
|
SDL_GL_SwapBuffers ();
|
||||||
|
|
||||||
|
gst_video_frame_unmap (&v_frame);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
@ -337,7 +339,7 @@ main (int argc, char **argv)
|
||||||
pipeline =
|
pipeline =
|
||||||
GST_PIPELINE (gst_parse_launch
|
GST_PIPELINE (gst_parse_launch
|
||||||
("videotestsrc ! video/x-raw, width=320, height=240, framerate=(fraction)30/1 ! "
|
("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));
|
bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline));
|
||||||
gst_bus_add_signal_watch (bus);
|
gst_bus_add_signal_watch (bus);
|
||||||
|
|
Loading…
Reference in a new issue