[grilo] grilo-test-ui: add local-metadata config
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo] grilo-test-ui: add local-metadata config
- Date: Wed, 23 Mar 2011 09:56:23 +0000 (UTC)
commit 1a729d9a7e7cca554a664d1d79ed833208cc67f7
Author: Lionel Landwerlin <lionel g landwerlin linux intel com>
Date: Sun Mar 20 02:09:32 2011 +0000
grilo-test-ui: add local-metadata config
Signed-off-by: Lionel Landwerlin <lionel g landwerlin linux intel com>
tools/grilo-test-ui/main.c | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/tools/grilo-test-ui/main.c b/tools/grilo-test-ui/main.c
index 186e300..526df4f 100644
--- a/tools/grilo-test-ui/main.c
+++ b/tools/grilo-test-ui/main.c
@@ -1445,6 +1445,19 @@ set_vimeo_config (void)
}
static void
+set_local_config (void)
+{
+ GrlConfig *config;
+ GrlPluginRegistry *registry;
+
+ config = grl_config_new ("grl-local-metadata", NULL);
+ grl_config_set_boolean (config, "guess-video", TRUE);
+
+ registry = grl_plugin_registry_get_default ();
+ grl_plugin_registry_add_config (registry, config, NULL);
+}
+
+static void
launchers_setup (void)
{
launchers = g_new0 (UriLaunchers, 1);
@@ -1937,6 +1950,7 @@ configure_plugins ()
set_flickr_config ();
set_youtube_config ();
set_vimeo_config ();
+ set_local_config ();
}
int
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]