Assign proxy when source need it (not only http)

This commit is contained in:
Alexandre Petitjean 2014-02-17 09:42:17 +01:00
parent 5e6e073cce
commit 6f06ec02c3

View File

@ -135,13 +135,8 @@ class Audio(pykka.ThreadingActor):
self._appsrc = source
def _on_source_setup(self, element, source):
uri = element.get_property('uri')
if not uri or not uri.startswith('http://'):
return
if hasattr(source.props, 'proxy') and self._config['proxy']['hostname']:
if self._config['proxy']['hostname']:
# default values
proxy_scheme = 'http'
proxy_port = 80