[Bug 789055] New: Gst.Bin __init__ changed behavior between 1.10 and 1.12 GStreamer version

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Oct 16 13:23:30 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=789055

            Bug ID: 789055
           Summary: Gst.Bin __init__ changed behavior between 1.10 and
                    1.12 GStreamer version
    Classification: Platform
           Product: GStreamer
           Version: 1.x
                OS: Linux
            Status: NEW
          Severity: major
          Priority: Normal
         Component: gst-python
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: andreu.n1 at gmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

In version 1.10 Gst.Bin component behaved like a regular GObject class used in
python. I mean, you could define a new component using Gst.Bin as parent,
define properties as GObject.ParamFlags.CONSTRUCT_ONLY and pass values to
__init__ method in order to set them.

class MyBin(Gst.Bin):
    foo = GObject.Property(type=str,
                           flags=GObject.ParamFlags.CONSTRUCT_ONLY |
                                 GObject.ParamFlags.READWRITE)

    def __init__(self, *args, **kwargs):
        Gst.Bin.__init__(self, *args, **kwargs)
        # your stuff



my_bin = MyBin(foo='bar')

But currently in Gst version 1.12 it raise an error because it does not pass
properties to GObject.Object.__init__.

TypeError: __init__() got an unexpected keyword argument 'foo'

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