scenario: Use g_error instead of exit (0)
authorThibault Saunier <thibault.saunier@collabora.com>
Sat, 5 Oct 2013 15:43:27 +0000 (12:43 -0300)
committerThibault Saunier <thibault.saunier@collabora.com>
Sat, 5 Oct 2013 16:36:05 +0000 (13:36 -0300)
validate/gst/validate/gst-validate-scenario.c

index 4c92414..ba1195c 100644 (file)
@@ -834,11 +834,8 @@ done:
   if (lfilename)
     g_free (lfilename);
 
-  if (ret == FALSE) {
-    g_printerr ("Could not set scenario %s => EXIT\n", scenario_name);
-
-    exit (0);
-  }
+  if (ret == FALSE)
+    g_error ("Could not set scenario %s => EXIT\n", scenario_name);
 
   return ret;