After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 655084 - get_plugin_list() returns empty list when using GObject Introspection/Python
get_plugin_list() returns empty list when using GObject Introspection/Python
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
unspecified
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-07-21 21:53 UTC by Peteris Krisjanis
Modified: 2011-07-22 07:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Peteris Krisjanis 2011-07-21 21:53:06 UTC
I have checked this with both Fedora 15 with gstreamer 10.34.0 and jhbuild with gstreamer master (22.07.2011)

1) I have simple code in Python which returns list of gstreamer plugins objects using PyGI:

from gi.repository import Gst
print Gst.Registry.get_default().get_plugin_list()

2) However, no matter what environment I use this return [], t.i. empty list
3) GST_DEBUG gives me nothing, so it indicates that it doesn't even try to reach Gstreamer
Comment 1 Edward Hervey 2011-07-22 07:59:34 UTC
you didn't initialize GStreamer (Gst.init(...))

It would be nice to have a way to have this automatically done whe import that module, just like in gst-python.