GstGhostPad

GstGhostPad — Pseudo link pads

Synopsis


#include <gst/gst.h>


            GstGhostPad;
GstPad*     gst_ghost_pad_new               (const gchar *name,
                                             GstPad *target);
gboolean    gst_ghost_pad_set_target        (GstGhostPad *gpad,
                                             GstPad *newtarget);
GstPad*     gst_ghost_pad_get_target        (GstGhostPad *gpad);
GstPad*     gst_ghost_pad_new_notarget      (const gchar *name,
                                             GstPadDirection dir);


Object Hierarchy


  GObject
   +----GstObject
         +----GstPad
               +----GstProxyPad
                     +----GstGhostPad

Description

Details

GstGhostPad

typedef struct _GstGhostPad GstGhostPad;


gst_ghost_pad_new ()

GstPad*     gst_ghost_pad_new               (const gchar *name,
                                             GstPad *target);

Create a new ghostpad with target as the target. The direction and padtemplate will be taken from the target pad.

Will ref the target.

name : the name of the new pad, or NULL to assign a default name.
target : the pad to ghost.
Returns : a new GstPad, or NULL in case of an error.

gst_ghost_pad_set_target ()

gboolean    gst_ghost_pad_set_target        (GstGhostPad *gpad,
                                             GstPad *newtarget);

Set the new target of the ghostpad gpad. Any existing target is unlinked.

gpad : the GstGhostpad
newtarget : the new pad target
Returns : TRUE if the new target could be set, FALSE otherwise.

gst_ghost_pad_get_target ()

GstPad*     gst_ghost_pad_get_target        (GstGhostPad *gpad);

Get the target pad of gpad. Unref after usage.

gpad : the GstGhostpad
Returns : the target GstPad, can be NULL if the ghostpad has no target set. Unref after usage.

gst_ghost_pad_new_notarget ()

GstPad*     gst_ghost_pad_new_notarget      (const gchar *name,
                                             GstPadDirection dir);

Create a new ghostpad without a target with the given direction. A target can be set on the ghostpad later with the #gst_ghost_pad_set_target() function.

The created ghostpad will not have a padtemplate.

name : the name of the new pad, or NULL to assign a default name.
dir : the direction of the ghostpad
Returns : a new GstPad, or NULL in case of an error.

See Also

GstPad