Gst.Bin __init__ changed behavior between 1.10 and 1.12 GStreamer version
Submitted by Andreu N
Link to original bug (#789055)
Description
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'
Version: 1.12.x