18 #include <gst/gstghostpad.h>
22 GhostPadPtr GhostPad::create(
const PadPtr & target,
const char *name)
24 GstPad *gp = gst_ghost_pad_new(name, target);
26 gst_object_ref_sink(gp);
31 GhostPadPtr GhostPad::create(PadDirection direction,
const char *name)
33 GstPad *gp = gst_ghost_pad_new_no_target(name, static_cast<GstPadDirection>(direction));
35 gst_object_ref_sink(gp);
40 PadPtr GhostPad::target()
const
42 return PadPtr::wrap(gst_ghost_pad_get_target(object<GstGhostPad>()),
false);
45 bool GhostPad::setTarget(
const PadPtr & target)
47 return gst_ghost_pad_set_target(object<GstGhostPad>(), target);