diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2016-01-09 23:25:03 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2016-01-09 23:33:15 +0100 |
commit | 56f96c04533d9879583c5cf8314ceb1a1ce80b96 (patch) | |
tree | ed3496bf147fdc2b4f7a817ebb1a295fd2def42e | |
parent | b55d0c7a7f579ac97d7dfba4ad8a41319dd2da64 (diff) |
lua-factory: Make containers match any supported_media
Individually, containers are not likely to represent all 3 of
images/audio/video types at once, it feels a bit backwards that
lua plugins must use "all" in order to provide information for
containers.
Fixes album cover fetching on gnome-music after the port to
grilo 0.3.
https://bugzilla.gnome.org/show_bug.cgi?id=760378
-rw-r--r-- | src/lua-factory/grl-lua-factory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua-factory/grl-lua-factory.c b/src/lua-factory/grl-lua-factory.c index 0cdbc87..0ee136b 100644 --- a/src/lua-factory/grl-lua-factory.c +++ b/src/lua-factory/grl-lua-factory.c @@ -1655,7 +1655,7 @@ grl_lua_factory_source_may_resolve (GrlSource *source, /* Verify if the source resolve type and media type match */ res_type = lua_source->priv->resolve_type; - if ((grl_media_is_container (media) && (res_type != GRL_SUPPORTED_MEDIA_ALL)) + if ((grl_media_is_container (media) && !(res_type & GRL_SUPPORTED_MEDIA_ALL)) || (grl_media_is_audio (media) && !(res_type & GRL_SUPPORTED_MEDIA_AUDIO)) || (grl_media_is_image (media) && !(res_type & GRL_SUPPORTED_MEDIA_IMAGE)) || (grl_media_is_video (media) && !(res_type & GRL_SUPPORTED_MEDIA_VIDEO))) { |