[Jingle] Fix detection of multiple devices

This commit is contained in:
Thibaut Girka 2010-05-03 17:23:06 +02:00
parent 06c7f2bdd5
commit bf8347e931
1 changed files with 2 additions and 0 deletions

View File

@ -36,7 +36,9 @@ class DeviceManager(object):
if devices:
self.devices[text % _(' Default device')] = pipe % name
for device in devices:
element.set_state(gst.STATE_NULL)
element.set_property('device', device)
element.set_state(gst.STATE_READY)
device_name = element.get_property('device-name')
self.devices[text % device_name] = pipe % '%s device=%s' % (name, device)
element.set_state(gst.STATE_NULL)