GStreamer Library Reference Manual (Core) | |||
---|---|---|---|
<<< Previous Page | Home | Next Page >>> |
libgstelements.la provide some basic elements like a disk source and sink. The use of these elements is strictly though the gtk_object_get() and gtk_object_set() functions and the GStreamer Core Library functions.
Use the gst_elementfactory_find() and gst_elementfactory_create() functions to create these elements.
The following code example shows you how to create a GstDiskSrc element.
#include <gst/gst.h> GstElement *src; GstElementFactory *srcfactory; gst_init(&argc,&argv); srcfactory = gst_elementfactory_find("disksrc"); g_return_if_fail(srcfactory != NULL); src = gst_elementfactory_create(srcfactory,"src"); g_return_if_fail(src != NULL); ... |