[rygel-grilo] Add Grilo options



commit 98d334503595048a60feff803ecb0d4dfbb69270
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Tue Jun 15 10:22:24 2010 +0200

    Add Grilo options
    
    When showing rygel-grilo command-line options, add also Grilo ones.

 src/rygel-grilo.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/rygel-grilo.c b/src/rygel-grilo.c
index 84f2fd1..a2ce9de 100644
--- a/src/rygel-grilo.c
+++ b/src/rygel-grilo.c
@@ -934,11 +934,9 @@ main (gint argc, gchar **argv)
   GOptionContext *context = NULL;
   gint i;
 
-  g_type_init ();
-  grl_init (&argc, &argv);
-
   context = g_option_context_new ("- run Grilo plugin as UPnP service");
   g_option_context_add_main_entries (context, entries, NULL);
+  g_option_context_add_group (context, grl_init_get_option_group ());
   g_option_context_parse (context, &argc, &argv, &error);
   g_option_context_free (context);
 
@@ -958,6 +956,8 @@ main (gint argc, gchar **argv)
   }
 
   /* Load grilo plugins */
+  grl_init (&argc, &argv);
+
   registry = grl_plugin_registry_get_instance ();
   if (!registry) {
     g_printerr ("Unable to load Grilo registry\n");



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