commit 02a1245a3d01159655b4b14303176dda6221dc38 Author: Juan A. Suarez Romero Date: Fri Mar 4 13:18:23 2011 +0100 Bump to version 0.1.10 Signed-off-by: Juan A. Suarez Romero NEWS | 14 ++++++++++++++ configure.ac | 2 +- src/data/grl-data.c | 24 ++++++++++++++++++++++++ src/data/grl-media-audio.c | 20 ++++++++++++++++++++ src/data/grl-media-image.c | 8 ++++++++ src/data/grl-media-video.c | 8 ++++++++ src/data/grl-media.c | 28 ++++++++++++++++++++++++++++ src/data/grl-related-keys.c | 36 ++++++++++++++++++++++++++++++++++++ src/grl-metadata-source.c | 2 ++ src/grl-plugin-registry.c | 4 ++++ 10 files changed, 145 insertions(+), 1 deletions(-) commit b906053fdbabada407c9b89bced0edf35255eb82 Author: Juan A. Suarez Romero Date: Fri Mar 4 16:55:32 2011 +0000 test-ui: Do not show empty values Do not print keys that do not have a value. Signed-off-by: Juan A. Suarez Romero tools/grilo-test-ui/main.c | 21 ++++++++++++--------- 1 files changed, 12 insertions(+), 9 deletions(-) commit 31f86d054066d5ad117e42ee8158eb231d0f31c4 Author: Juan A. Suarez Romero Date: Fri Mar 4 15:39:35 2011 +0000 core: Fix grl_data_get_keys() Include also related keys in the returned list. Signed-off-by: Juan A. Suarez Romero src/data/grl-data.c | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) commit c4a83945824507f81402b038ebb1993dbae4de15 Author: Juan A. Suarez Romero Date: Fri Mar 4 15:38:20 2011 +0000 core: Fix grl_data_has_key() When searching for a key, take in account that there are related keys. Signed-off-by: Juan A. Suarez Romero src/data/grl-data.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) commit 9f9c4af92151d06540215491016ccb2c78cbfef9 Author: Juan A. Suarez Romero Date: Fri Mar 4 13:09:01 2011 +0100 core: Add missing implementations Add implementations for grl_media_get_player_nth() and grl_media_get_external_url_nth(). Signed-off-by: Juan A. Suarez Romero src/data/grl-media.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 45 insertions(+), 0 deletions(-) commit 642c58f2b77ff312debbfdd613ec06fdfa00ce0c Author: Juan A. Suarez Romero Date: Fri Mar 4 13:07:15 2011 +0100 core: Fix some typos in documentation Signed-off-by: Juan A. Suarez Romero src/data/grl-related-keys.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit bb663f84fb57efea80ce5093c3d7c1181bf394e6 Author: Juan A. Suarez Romero Date: Fri Mar 4 13:04:16 2011 +0100 core: Rename grl_media_get_license() parameters Rename from "data" to "media", as it fits better. Signed-off-by: Juan A. Suarez Romero src/data/grl-media.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit d8c6129cd3f1576f8aec4bf943e1d4984c101970 Author: Juan A. Suarez Romero Date: Fri Mar 4 12:14:42 2011 +0100 build: Add --enable-grl-net Add option to enable/disable Grilo Net library building. Signed-off-by: Juan A. Suarez Romero configure.ac | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) commit 1c68005c910dccb957945ac9ec43215e72f95032 Author: Juan A. Suarez Romero Date: Thu Mar 3 11:28:19 2011 +0000 core: Add convenience API in GrlMediaFoo Add some utilities in GrlMedia clases to handle multi-valued elements in those keys that could make sense, as well as to handle correlated keys without needing to create or handle GrlRelatedKeys. Signed-off-by: Juan A. Suarez Romero src/data/grl-media-audio.c | 263 ++++++++++++++++++++++--- src/data/grl-media-audio.h | 40 +++- src/data/grl-media-image.c | 142 ++++++++++++-- src/data/grl-media-image.h | 31 +++- src/data/grl-media-video.c | 178 +++++++++++++++-- src/data/grl-media-video.h | 39 +++- src/data/grl-media.c | 473 ++++++++++++++++++++++++++++++++------------ src/data/grl-media.h | 108 +++++++---- 8 files changed, 1028 insertions(+), 246 deletions(-) commit 58a09ac78883b05996ad547cedb6158d54d1d8c6 Author: Juan A. Suarez Romero Date: Thu Mar 3 11:27:49 2011 +0000 core: Add multi-valued API to GrlData The old singled-valued API is still there, but will work with the first value of each key. Signed-off-by: Juan A. Suarez Romero src/data/grl-data.c | 662 +++++++++++++++++++++++++++++++++++++++++++-------- src/data/grl-data.h | 25 ++ 2 files changed, 586 insertions(+), 101 deletions(-) commit 7ac842bc4468a36a39b45ccd6433ef1d3eda1c9a Author: Juan A. Suarez Romero Date: Thu Mar 3 11:27:26 2011 +0000 core: Create predefined relations with key "url" System-defined keys "url", "mime-type", "bitrate", "framerate", "height" and "width" are correlated. Signed-off-by: Juan A. Suarez Romero src/grl-metadata-key.c | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) commit 8dfe45a501a99a366b238997dd28e22dbb04ce3d Author: Juan A. Suarez Romero Date: Thu Mar 3 11:26:53 2011 +0000 core: Add new class to handle related keys and its values Add GrlRelatedKeys class, which helps to keep together and handling related keys with their values. Signed-off-by: Juan A. Suarez Romero src/Makefile.am | 2 + src/data/grl-related-keys.c | 580 +++++++++++++++++++++++++++++++++++++++++++ src/data/grl-related-keys.h | 153 ++++++++++++ src/grilo.h | 1 + 4 files changed, 736 insertions(+), 0 deletions(-) commit 1926a5038ec873441f7a6b0877a72c3e9c5b4736 Author: Juan A. Suarez Romero Date: Thu Mar 3 11:26:00 2011 +0000 core: Add API to create relations between keys A couple of keys are related when getting a value for one of the keys, it is expected that the other key has also a value. It is specially intended to be used with keys providing multivalued data: for each single value in one key, there must be a value matching that single value. This matched value can be NULL, meaning that it doesn't have actually a value, but at least it is possible to create a relation between values in both keys. Signed-off-by: Juan A. Suarez Romero src/grl-plugin-registry.c | 79 +++++++++++++++++++++++++++++++++++++++++++++ src/grl-plugin-registry.h | 7 ++++ 2 files changed, 86 insertions(+), 0 deletions(-) commit 81e0a294ee649262a1ccc8c43887ee22966102c9 Author: Juan A. Suarez Romero Date: Thu Mar 3 17:02:41 2011 +0000 core: Ignore errors from metadata sources in grl_media_source_metadata() When invoking grl_source_metadata(), core can invoke several metadata sources to get information from different keys. It can happen that some of this sources can fail with an error. As we cannot send several errors in a shot, the best approach is to just print a warning and ignore the error. From an user point of view, it means that some keys could not be solved, no matter if due an error or because metadata cannot resolve it. Hence, an error in grl_media_source_metadata() means that the media source is the one who failed. Signed-off-by: Juan A. Suarez Romero src/grl-media-source.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) commit 4482871dbfcc418592ae1114a7405a9e3ca0acd5 Author: Lionel Landwerlin Date: Thu Mar 3 02:54:52 2011 +0000 media_metadata: ensure we always call the user's callback Even when there is no source to resolve keys. Signed-off-by: Lionel Landwerlin src/grl-media-source.c | 72 +++++++++++++++++++++++++++++------------------ 1 files changed, 44 insertions(+), 28 deletions(-) commit 8cbc6438e8398813c4acb5ee7c4231eabb2e43c2 Author: Juan A. Suarez Romero Date: Fri Feb 18 13:51:15 2011 +0100 test-ui: Show content changes in statusbar Add toggle option to activate content changes notification in plugins, showing the changes happening in status bar. Signed-off-by: Juan A. Suarez Romero tools/grilo-test-ui/main.c | 109 +++++++++++++++++++++++++++++++++++++++---- 1 files changed, 98 insertions(+), 11 deletions(-) commit 58fc25dc111471c060dcd7ea05fae8caf68cf9b6 Author: Guillaume Emont Date: Mon Feb 14 17:18:24 2011 +0100 core: removed grl_metadata_source_setup_full_resolution_mode(). It has been replaced by grl_metadata_source_expand_operation_keys() and grl_metadata_source_get_additional_sources(). src/grl-metadata-source-priv.h | 5 - src/grl-metadata-source.c | 169 ---------------------------------------- 2 files changed, 0 insertions(+), 174 deletions(-) commit e22b015b526cdcfed8cf4cc5e5a046b214fffe8e Author: Guillaume Emont Date: Thu Feb 17 22:29:22 2011 +0100 core: split full resolution mode setup in media source Make the media source code use grl_metadata_source_expand_operation_keys() and grl_metadata_source_get_additional_sources() instead of the deprecated grl_metadata_source_setup_full_resolution_mode(). This new scheme provides a "second chance" for keys the media source claims to support but could not retrieve for a particular media, when the GRL_RESOLVE_FULL is used. src/grl-media-source.c | 211 +++++++++++++++++---------------------- src/grl-metadata-source-priv.h | 2 +- 2 files changed, 93 insertions(+), 120 deletions(-) commit 88f157a2fa5926f3a54be689192782e3d0076eee Author: Guillaume Emont Date: Thu Feb 17 22:24:52 2011 +0100 core: rewrote full resolution mode handling Introducing grl_metadata_source_expand_operation_keys() and grl_metadata_source_get_additional_sources(). The first one can be used to find out which keys to ask from the media source running the operation, and the second one to know which metadata sources to ask for the keys the media source could not fill. These two new (internal) methods deprecate grl_metadata_source_setup_full_resolution_mode(). src/grl-metadata-source-priv.h | 10 ++ src/grl-metadata-source.c | 227 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 237 insertions(+), 0 deletions(-) commit dc4ddd77f55b0bc304fd436db896fd77e816c505 Author: Guillaume Emont Date: Tue Feb 8 18:34:36 2011 +0100 core: introduced grl_metadata_source_may_resolve() and corresponding vmethod. This deprecates grl_metadata_source_key_depends() and the key_depends() vmethod. To implement this, missing_in_data(), a new helper static method, has been added. src/grl-metadata-source.c | 115 +++++++++++++++++++++++++++++++++++++++++++++ src/grl-metadata-source.h | 16 ++++++- 2 files changed, 129 insertions(+), 2 deletions(-) commit 7223c46c2d20ca285a146d55651d572c6615446f Author: Juan A. Suarez Romero Date: Fri Feb 18 12:53:57 2011 +0100 core: Fix typo in GrlData class definition Signed-off-by: Juan A. Suarez Romero src/data/grl-data.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)