summaryrefslogtreecommitdiff
path: root/src/totem-grilo.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2015-12-03 11:25:30 +0100
committerBastien Nocera <hadess@hadess.net>2015-12-03 11:28:02 +0100
commitc67e7926f505831d3c791230ef53ebc8a6b13a2d (patch)
treeed43b31c5365fc40db240654bbf39b41fd4fe1e3 /src/totem-grilo.c
parente71f5eb8f1199bf2e108686c84ed219aefa4d6d3 (diff)
downloadtotem-c67e7926f505831d3c791230ef53ebc8a6b13a2d.tar.gz
grilo: Fix thumbnail cache not being used
b1eee82 was slightly incorrect. We still use the local-metadata source to fetch the URL to the local thumbnails. Both the local-metadata (for thumbnail paths) and video-title-parsing sources are required.
Diffstat (limited to 'src/totem-grilo.c')
-rw-r--r--src/totem-grilo.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/totem-grilo.c b/src/totem-grilo.c
index dcade3d05..e3c6a1690 100644
--- a/src/totem-grilo.c
+++ b/src/totem-grilo.c
@@ -67,6 +67,7 @@ struct _TotemGriloPrivate {
gboolean plugins_loaded;
GrlSource *local_metadata_src;
+ GrlSource *title_parsing_src;
GrlSource *metadata_store_src;
GrlSource *bookmarks_src;
gboolean fs_plugin_configured;
@@ -579,6 +580,11 @@ add_local_metadata (TotemGrilo *self,
options = grl_operation_options_new (NULL);
grl_operation_options_set_resolution_flags (options, GRL_RESOLVE_NORMAL);
+ grl_source_resolve_sync (self->priv->title_parsing_src,
+ media,
+ self->priv->metadata_keys,
+ options,
+ NULL);
grl_source_resolve_sync (self->priv->local_metadata_src,
media,
self->priv->metadata_keys,
@@ -1269,6 +1275,8 @@ source_added_cb (GrlRegistry *registry,
/* Metadata */
if (g_str_equal (id, "grl-video-title-parsing"))
+ self->priv->title_parsing_src = source;
+ else if (g_str_equal (id, "grl-local-metadata"))
self->priv->local_metadata_src = source;
else if (g_str_equal (id, "grl-metadata-store"))
self->priv->metadata_store_src = source;