[snappy] snappy: fix clutter init order warnings



commit 4fc7f4bdc6bfcefcb90b5608ad23e02a6c66c883
Author: Luis de Bethencourt <luis debethencourt com>
Date:   Sat Dec 21 16:04:18 2013 -0500

    snappy: fix clutter init order warnings

 src/snappy.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/snappy.c b/src/snappy.c
index f999f4d..7a6649c 100644
--- a/src/snappy.c
+++ b/src/snappy.c
@@ -179,17 +179,10 @@ main (int argc, char *argv[])
 
   context = g_option_context_new ("<media file> - Play movie files");
 
-  /* Process command arguments */
-  uri_list = process_args (argc, argv, &blind, &fullscreen, &hide,
-      &loop, &secret, &suburi, &tags, context);
-
   ci_err = gtk_clutter_init (&argc, &argv);
   if (ci_err != CLUTTER_INIT_SUCCESS)
     goto quit;
 
-  gst_init (&argc, &argv);
-  clutter_gst_init (NULL, NULL);
-
   /* Try to find the path for our resources in case snappy was relocated */
   data_dir = g_strdup (SNAPPY_DATA_DIR);
   if (!g_file_test (data_dir, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR)) {
@@ -215,6 +208,13 @@ main (int argc, char *argv[])
     }
   }
 
+  /* Process command arguments */
+  uri_list = process_args (argc, argv, &blind, &fullscreen, &hide,
+      &loop, &secret, &suburi, &tags, context);
+
+  gst_init (&argc, &argv);
+  clutter_gst_init (NULL, NULL);
+
   /* User Interface */
   ui = g_new (UserInterface, 1);
   ui->uri_list = uri_list;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]