[Multi-valued V2 (grilo) 05/12] core: Create relation with key "url"



Keys "url", "mime-type", "bitrate", "framerate", "height" and "width"
are correlated.

Signed-off-by: Juan A. Suarez Romero <jasuarez igalia com>
---
 src/grl-metadata-key.c |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/src/grl-metadata-key.c b/src/grl-metadata-key.c
index 92e7a10..365b9b6 100644
--- a/src/grl-metadata-key.c
+++ b/src/grl-metadata-key.c
@@ -322,6 +322,23 @@ GRL_METADATA_KEY_STUDIO =
                                                                    0,
                                                                    G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE),
                                                NULL);
+
+  /* Create the relations */
+  grl_plugin_registry_register_metadata_key_relation (registry,
+                                                      GRL_METADATA_KEY_URL,
+                                                      GRL_METADATA_KEY_MIME);
+  grl_plugin_registry_register_metadata_key_relation (registry,
+                                                      GRL_METADATA_KEY_URL,
+                                                      GRL_METADATA_KEY_BITRATE);
+  grl_plugin_registry_register_metadata_key_relation (registry,
+                                                      GRL_METADATA_KEY_URL,
+                                                      GRL_METADATA_KEY_FRAMERATE);
+  grl_plugin_registry_register_metadata_key_relation (registry,
+                                                      GRL_METADATA_KEY_URL,
+                                                      GRL_METADATA_KEY_HEIGHT);
+  grl_plugin_registry_register_metadata_key_relation (registry,
+                                                      GRL_METADATA_KEY_URL,
+                                                      GRL_METADATA_KEY_WIDTH);
 }
 
 /**
-- 
1.7.4



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