Commit 8b6a4a71 authored by Cosimo Cecchi's avatar Cosimo Cecchi

main: don't ignore the return value of gtk_clutter_init()

But return immediately if it fails.
parent aeefd84d
......@@ -142,7 +142,10 @@ main (int argc, char **argv)
GError *error;
clutter_x11_set_use_argb_visual (TRUE);
gtk_clutter_init (&argc, &argv);
if (gtk_clutter_init (&argc, &argv) < 0)
return EXIT_FAILURE;
clutter_gst_init (0, NULL);
parse_options (&argc, &argv);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment