From 00d751b6c61fbe7391ad4ad4849ff6c349641ef8 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Mon, 1 Dec 2014 11:34:27 +0100 Subject: benchmark: print message if camera not found --- bin/tools/benchmark.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'bin/tools') diff --git a/bin/tools/benchmark.c b/bin/tools/benchmark.c index 1e2c79f..104aa25 100644 --- a/bin/tools/benchmark.c +++ b/bin/tools/benchmark.c @@ -254,8 +254,8 @@ main (int argc, char *argv[]) camera = uca_plugin_manager_get_camera (manager, argv[1], &error, NULL); if (camera == NULL) { - g_error ("Initialization: %s", error->message); - goto cleanup_camera; + g_print ("Initialization: %s\n", error->message); + goto cleanup_manager; } benchmark (camera, n_runs, n_frames); @@ -263,9 +263,6 @@ main (int argc, char *argv[]) g_io_channel_shutdown (log_channel, TRUE, &error); g_assert_no_error (error); -cleanup_camera: - g_object_unref (camera); - cleanup_manager: g_object_unref (manager); -- cgit v1.2.3