![]() | ![]() | ![]() | Gnonlin Reference Manual | ![]() |
---|
GnlSource —
struct GnlSource; 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);
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 |
GstPad* user_function (GnlSource *gnlsource, gchar *arg1, gpointer user_data);
gnlsource : | the object which received the signal. |
arg1 : | |
user_data : | user data set when the signal handler was connected. |
Returns : |
<< Gnonlin | GnlComposition >> |