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

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Oct 16 16:00:55 UTC 2017


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

--- Comment #3 from Andreu N <andreu.n1 at gmail.com> ---
More info:

In my remote machine (CentOS 7.2):

$ python3.4
Python 3.4.5 (default, May 29 2017, 15:17:55) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gi
>>> gi.require_version('Gst', '1.0')
>>> from gi.repository import Gst
>>> Gst.version_string()
'GStreamer 1.10.2'
>>> import inspect
>>> inspect.signature(Gst.Bin.__init__).parameters
mappingproxy(OrderedDict([('self', <Parameter at 0x7f637cea4a68 'self'>),
('args', <Parameter at 0x7f637ce97e10 'args'>), ('kwargs', <Parameter at
0x7f637cc176c0 'kwargs'>)]))
>>> Gst.Bin.__mro__
(<class 'gi.repository.Gst.Bin'>, <class 'gi.repository.Gst.Element'>, <class
'gi.repository.Gst.Object'>, <class 'gi.repository.GObject.InitiallyUnowned'>,
<class 'gi.overrides.GObject.Object'>, <class 'gi.repository.GObject.Object'>,
<class 'gi._gobject.GObject'>, <class 'gi.repository.Gst.ChildProxy'>, <class
'gobject.GInterface'>, <class 'object'>)


It looks like Gst.Bin is not overridden. It's weird because it is overridden
since commit 02ca5d3ad25 (5 years ago). On the other hand, I don't understand
why __init__ method must be overridden. 

In my labtop (Fedora 26):

$ python3
Python 3.6.2 (default, Oct  2 2017, 16:51:32) 
[GCC 7.2.1 20170915 (Red Hat 7.2.1-2)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gi
>>> gi.require_version('Gst', '1.0')
>>> from gi.repository import Gst
>>> Gst.init([])
[]
>>> Gst.version_string()
'GStreamer 1.12.3'
>>> import inspect
>>> inspect.signature(Gst.Bin.__init__).parameters
mappingproxy(OrderedDict([('self', <Parameter "self">), ('name', <Parameter
"name=None">)]))
>>> Gst.Bin.__mro__
(<class 'gi.overrides.Gst.Bin'>, <class 'gi.repository.Gst.Bin'>, <class
'gi.repository.Gst.Element'>, <class 'gi.repository.Gst.Object'>, <class
'gi.repository.GObject.InitiallyUnowned'>, <class
'gi.overrides.GObject.Object'>, <class 'gi.repository.GObject.Object'>, <class
'gi._gobject.GObject'>, <class 'gi.repository.Gst.ChildProxy'>, <class
'gobject.GInterface'>, <class 'object'>)

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