Add missing return statement

This commit is contained in:
Philipp Hörist 2018-04-04 22:09:51 +02:00
parent 2ea9fc6932
commit 1b8d76bf9e
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ class DeviceManager(object):
element = Gst.ElementFactory.make(name, '%spresencetest' % name)
if element is None:
log.warning('could not create %spresencetest', name)
return
if hasattr(element.props, 'device'):
element.set_state(Gst.State.READY)
devices = element.get_properties('device')