GnlSource

GnlSource —

Synopsis




            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);


Object Hierarchy


  GObject
   +----GstObject
         +----GstElement
               +----GstBin
                     +----GnlObject
                           +----GnlSource

Properties


  "element"              GstElement            : Read / Write

Signal Prototypes


"get-pad-for-stream"
            GstPad*     user_function      (GnlSource *gnlsource,
                                            gchar *arg1,
                                            gpointer user_data);

Description

Details

GnlSource

typedef struct _GnlSource GnlSource;


gnl_source_new ()

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

name : The name of the new GnlSource
element : The element managed by this source
Returns : a new GnlSource object or NULL in case of an error.

gnl_source_set_element ()

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

gnl_source_get_element ()

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.

gnl_source_get_pad_for_stream ()

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

Properties

The "element" property

  "element"              GstElement            : Read / Write

The element to manage.

Signals

The "get-pad-for-stream" signal

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 :