diff options
Diffstat (limited to 'tests/test-rgb-upload.c')
-rw-r--r-- | tests/test-rgb-upload.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/test-rgb-upload.c b/tests/test-rgb-upload.c index 8491f5a..e5be8be 100644 --- a/tests/test-rgb-upload.c +++ b/tests/test-rgb-upload.c @@ -101,7 +101,6 @@ size_change (ClutterTexture *texture, int main (int argc, char *argv[]) { - GOptionContext *context; GError *error = NULL; gboolean result; ClutterActor *stage; @@ -115,18 +114,19 @@ main (int argc, char *argv[]) if (!g_thread_supported ()) g_thread_init (NULL); - context = g_option_context_new (" - test-colorspace options"); - g_option_context_add_group (context, gst_init_get_option_group ()); - g_option_context_add_group (context, clutter_get_option_group ()); - g_option_context_add_main_entries (context, options, NULL); - if (!g_option_context_parse (context, &argc, &argv, &error)) - { - g_option_context_free (context); + result = clutter_gst_init_with_args (&argc, + &argv, + " - Test RGB frames uploading", + options, + NULL, + &error); + if (error) + { g_print ("%s\n", error->message); g_error_free (error); - exit(EXIT_FAILURE); + return EXIT_FAILURE; } stage = clutter_stage_get_default (); |