[PATCH 3/5] core: added operation id in MetadataFullResolutionCtlCb



---
 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 c717cf0..4463c63 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 {
@@ -1903,6 +1904,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),
@@ -1917,6 +1920,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;
@@ -1925,8 +1929,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 */
-- 
1.7.1



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