diff options
author | Filippo Argiolas <filippo.argiolas@gmail.com> | 2009-12-12 21:12:53 +0100 |
---|---|---|
committer | Filippo Argiolas <filippo.argiolas@gmail.com> | 2009-12-23 09:05:31 +0100 |
commit | 09e9bf8d3298639dc7daf971f96a1139ae34b69f (patch) | |
tree | dc05ab41119125eba8ddf7e85e93a4888efe4a9e /tests | |
parent | 933bb9f2310528883b3afbea4ec02c901def65ee (diff) |
First pass at some reorganization of caps handling
Gobjectify CheeseDevice. Move video format stuff into CheeseDevice,
trying to use gstreamer functions whenever possibile (i.e. caps
manipulating stuff). Remove framerate code. We just use the maximum
framerate since some time now and gstreamer is quite good at picking the
best rate, no need to do that here.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cheese-test-monitor.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/cheese-test-monitor.c b/tests/cheese-test-monitor.c index 8c3c65d..c7779c7 100644 --- a/tests/cheese-test-monitor.c +++ b/tests/cheese-test-monitor.c @@ -6,7 +6,10 @@ static void added_cb (CheeseCameraDeviceMonitor *monitor, CheeseCameraDevice *device) { - g_message ("Added new device with ID '%s'", device->id); + gchar *id; + g_object_get (device, "device-id", &id, NULL); + g_message ("Added new device with ID '%s'", id); + g_free (id); } static void |