audio: Raise error for unknown protocol types

This commit is contained in:
Thomas Adamcik 2015-03-12 21:58:27 +01:00
parent 9c9d05be36
commit 411bae5a56

View File

@ -92,6 +92,9 @@ class Scanner(object):
if not self._src:
self._src = gst.element_make_from_uri(gst.URI_SRC, uri)
if not self._src:
raise exceptions.ScannerError('Could not find any elements to '
'handle %s URI.' % protocol)
utils.setup_proxy(self._src, self._proxy_config)
self._pipe.add(self._src)
self._src.link(self._typefinder)