[grilo/0.1.x] grl-media-source: signal finished metadata() operations



commit d717b79c34aa6bdd5d0b92dd1efded614197e477
Author: Lionel Landwerlin <lionel g landwerlin linux intel com>
Date:   Thu Jun 16 16:09:24 2011 +0100

    grl-media-source: signal finished metadata() operations
    
    We were previously leaking metadata() operations by never signalling
    them as "finished".
    
    Signed-off-by: Lionel Landwerlin <lionel g landwerlin linux intel com>

 src/grl-media-source.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/grl-media-source.c b/src/grl-media-source.c
index d8a113c..327020f 100644
--- a/src/grl-media-source.c
+++ b/src/grl-media-source.c
@@ -1243,6 +1243,9 @@ metadata_full_resolution_done_cb (GrlMetadataSource *source,
       g_error_free (_error);
     }
 
+    grl_metadata_source_set_operation_finished (GRL_METADATA_SOURCE (cb_info->source),
+                                                cb_info->ctl_info->metadata_id);
+
     g_list_free (cb_info->ctl_info->keys);
     g_free (cb_info->ctl_info);
     g_free (cb_info);
@@ -1324,6 +1327,10 @@ metadata_full_resolution_ctl_cb (GrlMediaSource *source,
 			     media,
 			     ctl_info->user_data,
 			     NULL);
+
+    grl_metadata_source_set_operation_finished (GRL_METADATA_SOURCE (source),
+                                                ctl_info->metadata_id);
+
     g_free (done_info);
   }
 }



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