Migrating to gstreamer-1.0: cannot add dynamic pad

Tim-Philipp Müller t.i.m at zen.co.uk
Thu Jan 17 15:17:32 PST 2013


On Thu, 2013-01-17 at 23:41 +0100, Robert Szelepcsenyi wrote:

Hi,

> I am trying out python bindings for gstreamer-1.0. I have come across a
> problem. I don't know whether I am doing anything wrong or it is a bug.
> 

> sinkpad=adder.get_request_pad("sink%d")
> print sinkpad
> 
> It just initializes gstreamer 1.0, creates a pipe, adds adder (audiomixer)
> and tries to create a dynamic pad.
> 
> The problem is that the pad is obviously not created and just None is
> returned.
> 
> In gstreamer-0.10
> 
> adder.get_request_pad("sink%d")
> 
> works without any problem.

Some request and sometimes pad names have changed to account for the
fact that negative numbers in the pad name don't really make sense
there.

'gst-inspect-1.0 adder' shows:

  SINK template: 'sink_%u'
    Availability: On request

Also see:
http://cgit.freedesktop.org/gstreamer/gstreamer/tree/docs/random/porting-to-1.0.txt#n608

(unrelatedly also https://wiki.ubuntu.com/Novacut/GStreamer1.0 in case
you weren't aware of it yet).

Cheers
 -Tim



More information about the gstreamer-devel mailing list