Skip to content

Instantly share code, notes, and snippets.

@yashi
Last active December 5, 2015 13:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yashi/1decada9a1f0e3df2a85 to your computer and use it in GitHub Desktop.
Save yashi/1decada9a1f0e3df2a85 to your computer and use it in GitHub Desktop.
#include <gst/gst.h>
int main(int argc, char *argv[])
{
GMainLoop *mainloop;
GstElement *pipeline;
GError *error = NULL;
gst_init(&argc, &argv);
mainloop = g_main_loop_new(NULL, FALSE);
pipeline = gst_parse_launch("videotestsrc ! autovideosink", &error);
gst_element_set_state(pipeline, GST_STATE_PLAYING);
g_main_loop_run(mainloop);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment