From 506f3716d02dbdcfef633fd34a93fd818108d10a Mon Sep 17 00:00:00 2001 From: Filippo Argiolas Date: Wed, 3 Feb 2010 10:41:04 +0100 Subject: 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 --- tests/cheese-test-monitor.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'tests') 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 -- cgit v1.2.1