[grilo-plugins] filesystem: adapted plugin to API change for GrlOperationOptions.
- From: Guillaume JÃrÃme Emont <guijemont src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] filesystem: adapted plugin to API change for GrlOperationOptions.
- Date: Wed, 14 Dec 2011 13:57:25 +0000 (UTC)
commit ba36e88b655126bca79f832484efff29f2621d99
Author: Guillaume Emont <gemont igalia com>
Date: Mon Apr 11 14:44:21 2011 +0200
filesystem: adapted plugin to API change for GrlOperationOptions.
src/media/filesystem/grl-filesystem.c | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/src/media/filesystem/grl-filesystem.c b/src/media/filesystem/grl-filesystem.c
index c35dff9..05e3921 100644
--- a/src/media/filesystem/grl-filesystem.c
+++ b/src/media/filesystem/grl-filesystem.c
@@ -520,7 +520,8 @@ browse_emit_idle (gpointer user_data)
entry_path = (gchar *) idle_data->current->data;
content = create_content (NULL,
entry_path,
- idle_data->spec->flags & GRL_RESOLVE_FAST_ONLY,
+ grl_operation_options_get_flags (idle_data->spec->options)
+ & GRL_RESOLVE_FAST_ONLY,
FALSE);
g_free (idle_data->current->data);
@@ -938,7 +939,9 @@ file_cb (GFileInfo *file_info, RecursiveOperation *operation)
if (ss->skip) {
ss->skip--;
} else {
- media = create_content (NULL, path, ss->flags & GRL_RESOLVE_FAST_ONLY, FALSE);
+ media = create_content (NULL, path,
+ grl_operation_options_get_flags (ss->options)
+ & GRL_RESOLVE_FAST_ONLY, FALSE);
}
}
@@ -1194,7 +1197,8 @@ grl_filesystem_source_metadata (GrlMediaSource *source,
if (g_file_test (path, G_FILE_TEST_EXISTS)) {
create_content (ms->media, path,
- ms->flags & GRL_RESOLVE_FAST_ONLY,
+ grl_operation_options_get_flags (ms->options)
+ & GRL_RESOLVE_FAST_ONLY,
!id);
ms->callback (ms->source, ms->metadata_id, ms->media, ms->user_data, NULL);
} else {
@@ -1272,7 +1276,9 @@ static void grl_filesystem_get_media_from_uri (GrlMediaSource *source,
/* FIXME: this is a blocking call, not sure we want that in here */
/* Note: we assume create_content() never returns NULL, which seems to be true */
- media = create_content (NULL, path, mfus->flags & GRL_RESOLVE_FAST_ONLY,
+ media = create_content (NULL, path,
+ grl_operation_options_get_flags (mfus->options)
+ & GRL_RESOLVE_FAST_ONLY,
FALSE);
mfus->callback (source, mfus->media_from_uri_id, media, mfus->user_data, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]