gst1: Replace Gst.URI_SRC with Gst.URIType.SRC

This commit is contained in:
Stein Magnus Jodal 2015-09-02 01:25:50 +02:00
parent bd077591d0
commit 3c2f83f6a6

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.URIType.SRC, uri)
if not src:
raise exceptions.ScannerError('GStreamer can not open: %s' % uri)