[grilo-plugins] jamendo: set/get operation data is in GrlMetadataSource



commit 65081c43e1e90df927625bc66fc7190ed78731de
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Tue Apr 5 07:00:49 2011 +0000

    jamendo: set/get operation data is in GrlMetadataSource
    
    These operations have been moved from GrlMediaSource to GrlMetadataSource.
    
    Signed-off-by: Juan A. Suarez Romero <jasuarez igalia com>

 src/media/jamendo/grl-jamendo.c |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/src/media/jamendo/grl-jamendo.c b/src/media/jamendo/grl-jamendo.c
index e788a04..c83ce07 100644
--- a/src/media/jamendo/grl-jamendo.c
+++ b/src/media/jamendo/grl-jamendo.c
@@ -1196,7 +1196,8 @@ grl_jamendo_source_browse (GrlMediaSource *source,
   xpe->offset = page_offset;
   xpe->spec.bs = bs;
 
-  grl_media_source_set_operation_data (source, bs->browse_id, xpe);
+  grl_metadata_source_set_operation_data (GRL_METADATA_SOURCE (source),
+                                          bs->browse_id, xpe);
 
   read_url_async (GRL_JAMENDO_SOURCE (source), url, xpe);
   g_free (url);
@@ -1274,7 +1275,8 @@ grl_jamendo_source_query (GrlMediaSource *source,
   xpe->offset = page_offset;
   xpe->spec.qs = qs;
 
-  grl_media_source_set_operation_data (source, qs->query_id, xpe);
+  grl_metadata_source_set_operation_data (GRL_METADATA_SOURCE (source),
+                                          qs->query_id, xpe);
 
   read_url_async (GRL_JAMENDO_SOURCE (source), url, xpe);
   g_free (url);
@@ -1327,7 +1329,8 @@ grl_jamendo_source_search (GrlMediaSource *source,
   xpe->offset = page_offset;
   xpe->spec.ss = ss;
 
-  grl_media_source_set_operation_data (source, ss->search_id, xpe);
+  grl_metadata_source_set_operation_data (GRL_METADATA_SOURCE (source),
+                                          ss->search_id, xpe);
 
   read_url_async (GRL_JAMENDO_SOURCE (source), url, xpe);
   g_free (url);
@@ -1352,8 +1355,9 @@ grl_jamendo_source_cancel (GrlMediaSource *source, guint operation_id)
 
   GRL_DEBUG ("grl_jamendo_source_cancel");
 
-  xpe = (XmlParseEntries *) grl_media_source_get_operation_data (source,
-                                                                 operation_id);
+  xpe =
+    (XmlParseEntries *) grl_metadata_source_get_operation_data (GRL_METADATA_SOURCE (source),
+                                                                operation_id);
 
   if (xpe) {
     xpe->cancelled = TRUE;



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