Add missing return statement
This commit is contained in:
parent
2ea9fc6932
commit
1b8d76bf9e
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue