From bf8347e931e5f39cab212826197e589be1efc6d8 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Mon, 3 May 2010 17:23:06 +0200 Subject: [PATCH] [Jingle] Fix detection of multiple devices --- src/common/multimedia_helpers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/multimedia_helpers.py b/src/common/multimedia_helpers.py index 6481e1be3..c4f82f397 100644 --- a/src/common/multimedia_helpers.py +++ b/src/common/multimedia_helpers.py @@ -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)