diff options
author | Filippo Argiolas <filippo.argiolas@gmail.com> | 2010-02-03 10:41:04 +0100 |
---|---|---|
committer | Filippo Argiolas <filippo.argiolas@gmail.com> | 2010-02-03 11:12:10 +0100 |
commit | 506f3716d02dbdcfef633fd34a93fd818108d10a (patch) | |
tree | 2bc84edaefe36b7fd041e1d8f7592dc93d124363 /tests/cheese-test-monitor.c | |
parent | 6670758f27f48a008937268ee3f7cabb2f36dc18 (diff) | |
download | cheese-506f3716d02dbdcfef633fd34a93fd818108d10a.tar.gz |
Don't initialize device objects in device monitor
This way the monitor becomes just a tiny udev interface that doesn't use
gstreamer for caps retrieval so that multiple monitors can be
instanciated.
The device creation has been moved into the "added" signal
handler in cheese-camera.c
Diffstat (limited to 'tests/cheese-test-monitor.c')
-rw-r--r-- | tests/cheese-test-monitor.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/cheese-test-monitor.c b/tests/cheese-test-monitor.c index 7db0e281..aed85e93 100644 --- a/tests/cheese-test-monitor.c +++ b/tests/cheese-test-monitor.c @@ -5,13 +5,12 @@ static void added_cb (CheeseCameraDeviceMonitor *monitor, - CheeseCameraDevice *device) + const char *id, + const char *device_file, + const char *product_name, + gint api_version) { - gchar *id; - - g_object_get (device, "device-id", &id, NULL); g_message ("Added new device with ID '%s'", id); - g_free (id); } static void |