Hi, seems there is a gap in wrapping ghost pads in gstreamermm. The attached code tries to create a ghost pad for a sink of an element in a bin and add it to the bin, which is then connected to a playbin pipeline (the idea here is that later more elements are inserted in the filter bin, of course). This approach works in an equivalent C implementation and is described, I believe, in the gestreamer documentation and used in at least one media player, probably more. Running the program yields: $ ./mediaplayer sink_pad 2 (lt-mediaplayer:8954): glibmm-WARNING **: Glib::ConstructParams::ConstructParams(): object class "gtkmm__GstGhostPad" has no property named "target" ghost_pad 0 (lt-mediaplayer:8954): GStreamer-CRITICAL **: Trying to add pad sink to element bin, but it has no direction It looks as if the target property is not wrapped or something, causing the gstreamer code itself to fail(?). Thanks, Marcus
Attachment:
main.cc
Description: Binary data