| GNonLin v0.2.2 Reference Manual |
|---|
GnlSourceGnlSource — Adds the notion of position in time to GstElement. |
GnlSource;
GnlSourceClass;
GnlSource* gnl_source_new (const gchar *name,
GstElement *element);
void gnl_source_set_element (GnlSource *source,
GstElement *element);
GstElement* gnl_source_get_element (GnlSource *source);
GstPad* gnl_source_get_pad_for_stream (GnlSource *source,
const gchar *padname);
"get-pad-for-stream" GstPad* user_function (GnlSource *gnlsource, gchar *arg1, gpointer user_data);
In order to use a source GstElement in non-linear editing work, this class wraps the given GstElement and adds the notion of position in the source and in the container.
typedef struct {
GnlObjectClass parent_class;
GstPad* (*get_pad_for_stream) (GnlSource *source, const gchar *padname);
} GnlSourceClass;
GnlSource* gnl_source_new (const gchar *name, GstElement *element);
Creates a new source object with the given name. The source will manage the given GstElement
void gnl_source_set_element (GnlSource *source, GstElement *element);
Set the given element on the given source. If the source was managing another element, it will be removed first.
source : | The source element to set the element on |
element : | The element that should be managed by the source |
GstElement* gnl_source_get_element (GnlSource *source);
Get the element managed by this source.
source : | The source element to get the element of |
| Returns : | The element managed by this source. |
GstPad* gnl_source_get_pad_for_stream (GnlSource *source, const gchar *padname);
Get a handle to a pad that provides the data from the given pad of the managed element.
source : | The source element to query |
padname : | The padname of the element managed by this source |
| Returns : | A pad |
| << GnlObject | GnlOperation >> |