[grilo] grl-media-source: signal finished metadata() operations
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo] grl-media-source: signal finished metadata() operations
- Date: Mon, 20 Jun 2011 10:28:10 +0000 (UTC)
commit 8ee7d8bb88a9503b2678be821f64a18d0b2a9cbf
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 2979c2e..1d19c50 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]