diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2014-12-01 11:34:27 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2014-12-01 11:34:27 +0100 |
commit | 00d751b6c61fbe7391ad4ad4849ff6c349641ef8 (patch) | |
tree | 40f23c8ef545874030f447b640ce86d6c6e0eace /bin | |
parent | 4ce4159475287bcd94e220b8f201f22fd667cb43 (diff) | |
download | libuca-00d751b6c61fbe7391ad4ad4849ff6c349641ef8.tar.gz libuca-00d751b6c61fbe7391ad4ad4849ff6c349641ef8.tar.bz2 libuca-00d751b6c61fbe7391ad4ad4849ff6c349641ef8.tar.xz libuca-00d751b6c61fbe7391ad4ad4849ff6c349641ef8.zip |
benchmark: print message if camera not found
Diffstat (limited to 'bin')
-rw-r--r-- | bin/tools/benchmark.c | 7 |
1 files changed, 2 insertions, 5 deletions
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); |