[Bug 666168] New: [0.11] - not able to get pad from encodebin

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Dec 14 04:44:29 PST 2011


https://bugzilla.gnome.org/show_bug.cgi?id=666168
  GStreamer | gst-plugins-base | git

           Summary: [0.11] - not able to get pad from encodebin
    Classification: Platform
           Product: GStreamer
           Version: git
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-base
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: Uraeus at linuxrising.org
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


I got the following code:

origin = src_pad.query_caps(None)
c = origin.to_string()
if not c.startswith("text/"):
    if not (c.startswith("video/") and (self.videocaps == False)):
        print "creating sinkpad"
        print "origin is " + str(c)
        sinkpad = self.encodebin.emit("request-pad", origin)
        print "src_pad is " +str(src_pad)
        print "sinkpad is " +str(sinkpad)
        src_pad.link(sinkpad)

But it seems to fail with the following error:


creating sinkpad
origin is audio/x-raw, format=(string)F32LE, rate=(int)44100, channels=(int)2
src_pad is <GhostPad object at 0x922d234 (GstGhostPad at 0x8ed3b00)>
sinkpad is None
Traceback (most recent call last):
  File "/home/cschalle/devel/transmageddon/src/transcoder_engine.py", line 364,
in OnDynamicPad
    src_pad.link(sinkpad)
  File "/usr/lib/python2.7/site-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
TypeError: Argument 1 does not allow None as a value

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list