[grilo] core: added operation id in MetadataFullResolutionCtlCb
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo] core: added operation id in MetadataFullResolutionCtlCb
- Date: Tue, 8 Feb 2011 15:39:47 +0000 (UTC)
commit b61cad7f2f4cafb548065617b5a0502c9416c29c
Author: Guillaume Emont <gemont igalia com>
Date: Mon Feb 7 20:58:34 2011 +0100
core: added operation id in MetadataFullResolutionCtlCb
Signed-off-by: Juan A. Suarez Romero <jasuarez igalia com>
src/grl-media-source.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/grl-media-source.c b/src/grl-media-source.c
index ecb2187..9236b7d 100644
--- a/src/grl-media-source.c
+++ b/src/grl-media-source.c
@@ -128,6 +128,7 @@ struct MetadataFullResolutionCtlCb {
gpointer user_data;
GList *source_map_list;
GrlMetadataResolutionFlags flags;
+ guint metadata_id;
};
struct MetadataFullResolutionDoneCb {
@@ -1912,6 +1913,8 @@ grl_media_source_metadata (GrlMediaSource *source,
&_keys, FALSE);
}
+ metadata_id = grl_media_source_gen_operation_id (source);
+
if (flags & GRL_RESOLVE_FULL) {
GRL_DEBUG ("requested full metadata");
grl_metadata_source_setup_full_resolution_mode (GRL_METADATA_SOURCE (source),
@@ -1926,6 +1929,7 @@ grl_media_source_metadata (GrlMediaSource *source,
c->user_data = user_data;
c->source_map_list = key_mapping.source_maps;
c->flags = flags;
+ c->metadata_id = metadata_id;
_callback = metadata_full_resolution_ctl_cb;
_user_data = c;
@@ -1934,8 +1938,6 @@ grl_media_source_metadata (GrlMediaSource *source,
}
}
- metadata_id = grl_media_source_gen_operation_id (source);
-
/* Always hook an own relay callback so we can do some
post-processing before handing out the results
to the user */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]