gst1: Replace element_make_from_uri() with Element.make_from_uri()

This commit is contained in:
Stein Magnus Jodal 2015-09-02 01:25:27 +02:00
parent 9c0547d039
commit bd077591d0

View File

@ -65,7 +65,7 @@ class Scanner(object):
# Turns out it's _much_ faster to just create a new pipeline for every as
# decodebins and other elements don't seem to take well to being reused.
def _setup_pipeline(uri, proxy_config=None):
src = Gst.element_make_from_uri(Gst.URI_SRC, uri)
src = Gst.Element.make_from_uri(Gst.URI_SRC, uri)
if not src:
raise exceptions.ScannerError('GStreamer can not open: %s' % uri)