gst1: Replace registry_get_default() with registry.get()

This commit is contained in:
Stein Magnus Jodal 2015-09-02 01:14:21 +02:00
parent 1007d42dd1
commit 8aad1d1846
3 changed files with 3 additions and 3 deletions

View File

@ -420,7 +420,7 @@ class Audio(pykka.ThreadingActor):
def _setup_preferences(self):
# TODO: move out of audio actor?
# Fix for https://github.com/mopidy/mopidy/issues/604
registry = Gst.registry_get_default()
registry = Gst.Registry.get()
jacksink = registry.find_feature(
'jackaudiosink', Gst.TYPE_ELEMENT_FACTORY)
if jacksink:

View File

@ -55,7 +55,7 @@ def supported_uri_schemes(uri_schemes):
:rtype: set of URI schemes we can support via this GStreamer install.
"""
supported_schemes = set()
registry = Gst.registry_get_default()
registry = Gst.Registry.get()
for factory in registry.get_feature_list(Gst.TYPE_ELEMENT_FACTORY):
for uri in factory.get_uri_protocols():

View File

@ -186,6 +186,6 @@ def _gstreamer_check_elements():
]
known_elements = [
factory.get_name() for factory in
Gst.registry_get_default().get_feature_list(Gst.TYPE_ELEMENT_FACTORY)]
Gst.Registry.get().get_feature_list(Gst.TYPE_ELEMENT_FACTORY)]
return [
(element, element in known_elements) for element in elements_to_check]