[Bug 668817] New: [0.11] - problem with creating a structure

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Jan 27 01:09:42 PST 2012


https://bugzilla.gnome.org/show_bug.cgi?id=668817
  GStreamer | gstreamer (core) | 0.11.x

           Summary: [0.11] - problem with creating a structure
    Classification: Platform
           Product: GStreamer
           Version: 0.11.x
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: Uraeus at linuxrising.org
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


Getting weird errors when creating a structure from String, even with Edwards
annotation fixes. Below are output from ipython demonstrating the issue.

In [1]: from gi.repository import Gst

In [2]: remuxcaps = Gst.Caps()

In [3]: remuxcaps.append_structure(Gst.Structure.from_string("video/x-raw"))
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
/home/cschalle/devel/transmageddon/src/<ipython-input-3-c70b3a36a28d> in
<module>()
----> 1 remuxcaps.append_structure(Gst.Structure.from_string("video/x-raw"))

/usr/lib/python2.7/site-packages/gi/types.pyc in function(*args, **kwargs)
     41 
     42     def function(*args, **kwargs):
---> 43         return info.invoke(*args, **kwargs)
     44     function.__info__ = info
     45     function.__name__ = info.get_name()

TypeError: Expected Gst.Structure, but got StructMeta

In [4]: test=Gst.Str
Gst.StreamError           Gst.Structure             Gst.StructureForeachFunc  
Gst.StreamStatusType      Gst.StructureChangeType   Gst.StructureMapFunc      

In [4]: test=Gst.Structure.from_string("video/x-raw")

In [5]: print test
(<GstStructure at 0xa21ec00>, '')

In [6]: remuxcaps.ap
remuxcaps.append            remuxcaps.append_structure  

In [6]: remuxcaps.append_structure(test)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
/home/cschalle/devel/transmageddon/src/<ipython-input-6-c5b3a04c305f> in
<module>()
----> 1 remuxcaps.append_structure(test)

/usr/lib/python2.7/site-packages/gi/types.pyc in function(*args, **kwargs)
     41 
     42     def function(*args, **kwargs):
---> 43         return info.invoke(*args, **kwargs)
     44     function.__info__ = info
     45     function.__name__ = info.get_name()

TypeError: Expected Gst.Structure, but got StructMeta

-- 
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