summaryrefslogtreecommitdiff
path: root/tests/cheese-test-monitor.c
diff options
context:
space:
mode:
authorDavid King <amigadave@amigadave.com>2012-01-21 21:53:22 +0000
committerDavid King <amigadave@amigadave.com>2012-01-21 22:01:38 +0000
commit8e2863a27d5839759ba2cc1b85aab0e8e2c3202e (patch)
tree2657caa6f81e9a0c9a8a84c1f5d9e20289b71e2c /tests/cheese-test-monitor.c
parent8d706290e186047ef5d189e7c7c61fcd1615b7ba (diff)
downloadcheese-8e2863a27d5839759ba2cc1b85aab0e8e2c3202e.tar.gz
Adapt to use new cheese_init and cheese_gtk_init
Additionally, use EXIT_SUCCESS and EXIT_FAILURE when exiting.
Diffstat (limited to 'tests/cheese-test-monitor.c')
-rw-r--r--tests/cheese-test-monitor.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/cheese-test-monitor.c b/tests/cheese-test-monitor.c
index 7153d51c..8fd0b6fc 100644
--- a/tests/cheese-test-monitor.c
+++ b/tests/cheese-test-monitor.c
@@ -2,6 +2,7 @@
#include "cheese-camera-device-monitor.h"
#include "cheese-camera-device.h"
+#include "cheese.h"
static void
added_cb (CheeseCameraDeviceMonitor *monitor,
@@ -25,7 +26,8 @@ main (int argc, char **argv)
{
CheeseCameraDeviceMonitor *monitor;
- gst_init (&argc, &argv);
+ if (!cheese_init (&argc, &argv))
+ return EXIT_FAILURE;
monitor = cheese_camera_device_monitor_new ();
g_signal_connect (G_OBJECT (monitor), "added",
@@ -36,5 +38,5 @@ main (int argc, char **argv)
g_main_loop_run (g_main_loop_new (NULL, FALSE));
- return 0;
+ return EXIT_SUCCESS;
}