gst1: Replace Gst.URI_SRC with Gst.URIType.SRC
This commit is contained in:
parent
bd077591d0
commit
3c2f83f6a6
@ -65,7 +65,7 @@ class Scanner(object):
|
|||||||
# Turns out it's _much_ faster to just create a new pipeline for every as
|
# 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.
|
# decodebins and other elements don't seem to take well to being reused.
|
||||||
def _setup_pipeline(uri, proxy_config=None):
|
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:
|
if not src:
|
||||||
raise exceptions.ScannerError('GStreamer can not open: %s' % uri)
|
raise exceptions.ScannerError('GStreamer can not open: %s' % uri)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user