[grilo-plugins] lua-factory: Make containers match any supported_media



commit 56f96c04533d9879583c5cf8314ceb1a1ce80b96
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Jan 9 23:25:03 2016 +0100

    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

 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))) {


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