[PATCH 5/9] 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..df9b3d2 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_relation (registry,
+                                                  GRL_METADATA_KEY_URL,
+                                                  GRL_METADATA_KEY_MIME);
+  grl_plugin_registry_register_metadata_relation (registry,
+                                                  GRL_METADATA_KEY_URL,
+                                                  GRL_METADATA_KEY_BITRATE);
+  grl_plugin_registry_register_metadata_relation (registry,
+                                                  GRL_METADATA_KEY_URL,
+                                                  GRL_METADATA_KEY_FRAMERATE);
+  grl_plugin_registry_register_metadata_relation (registry,
+                                                  GRL_METADATA_KEY_URL,
+                                                  GRL_METADATA_KEY_HEIGHT);
+  grl_plugin_registry_register_metadata_relation (registry,
+                                                  GRL_METADATA_KEY_URL,
+                                                  GRL_METADATA_KEY_WIDTH);
 }
 
 /**
-- 
1.7.1



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