"GStreamer" (GNOME Bugzilla)
2015-05-03 20:18:51 UTC
https://bugzilla.gnome.org/show_bug.cgi?id=748852
Bug ID: 748852
Summary: Override changes Gst.ElementFactory.make arguments
Classification: Platform
Product: GStreamer
Version: unspecified
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: gst-python
Assignee: gstreamer-***@lists.freedesktop.org
Reporter: ***@iki.fi
QA Contact: gstreamer-***@lists.freedesktop.org
GNOME version: ---
I have gotten bug reports in Gaupol that the following code doesn't work if the
user has gst-python installed (see #748813).
Gst.ElementFactory.make("textoverlay", name=None)
Your override changes both argument names, thus breaking keyword argument use,
which I tend to often prefer since it makes the code self-documenting. To my
knowledge, keyword argument use should be fine with PyGObject, i.e. they're
part of the API, see e.g. gtk-demo.py [1].
Gaupol doesn't depend on gst-python and I was surprised to find out such a
thing still exists, but there was no information at the web site [2]. So, if I
may ask, what is this gst-python?, why is it needed? and is it intended that
you override function signatures or just an accident? Can I as an application
developer expect that things should work the same for users with and without
gst-python?
[1] https://git.gnome.org/browse/pygobject/tree/demos/gtk-demo/gtk-demo.py
[2] http://gstreamer.freedesktop.org/modules/gst-python.html
Bug ID: 748852
Summary: Override changes Gst.ElementFactory.make arguments
Classification: Platform
Product: GStreamer
Version: unspecified
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: gst-python
Assignee: gstreamer-***@lists.freedesktop.org
Reporter: ***@iki.fi
QA Contact: gstreamer-***@lists.freedesktop.org
GNOME version: ---
I have gotten bug reports in Gaupol that the following code doesn't work if the
user has gst-python installed (see #748813).
Gst.ElementFactory.make("textoverlay", name=None)
Your override changes both argument names, thus breaking keyword argument use,
which I tend to often prefer since it makes the code self-documenting. To my
knowledge, keyword argument use should be fine with PyGObject, i.e. they're
part of the API, see e.g. gtk-demo.py [1].
Gaupol doesn't depend on gst-python and I was surprised to find out such a
thing still exists, but there was no information at the web site [2]. So, if I
may ask, what is this gst-python?, why is it needed? and is it intended that
you override function signatures or just an accident? Can I as an application
developer expect that things should work the same for users with and without
gst-python?
[1] https://git.gnome.org/browse/pygobject/tree/demos/gtk-demo/gtk-demo.py
[2] http://gstreamer.freedesktop.org/modules/gst-python.html
--
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.