"GStreamer" (GNOME Bugzilla)
2017-10-16 13:23:30 UTC
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-***@lists.freedesktop.org
Reporter: ***@gmail.com
QA Contact: gstreamer-***@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'
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-***@lists.freedesktop.org
Reporter: ***@gmail.com
QA Contact: gstreamer-***@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.
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.