Skip to content

Instantly share code, notes, and snippets.

@yujuwon
Created July 17, 2013 05:11
Show Gist options
  • Select an option

  • Save yujuwon/6017842 to your computer and use it in GitHub Desktop.

Select an option

Save yujuwon/6017842 to your computer and use it in GitHub Desktop.
#include <gst/gst.h>
int main(int argc, char* argv[])
{
GstElement *element;
/* init GStreamer */
gst_init(&argc, &argc);
/* create element */
element = gst_element_factory_make("fakesrc", "source");
if(!element){
g_print("Failed to create element of type 'fakesrc'\n");
return -1;
}
gst_object_unref(GST_OBJECT(element));
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment