[grilo-plugins] Remove unused thumbnail_uri since libmediaart refactoring.



commit b2aa5213feb6ae7d26cf058a01225a1f0528049f
Author: Jeremy Whiting <jpwhiting kde org>
Date:   Wed Jan 28 17:55:07 2015 -0700

    Remove unused thumbnail_uri since libmediaart refactoring.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=746776

 src/local-metadata/grl-local-metadata.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/local-metadata/grl-local-metadata.c b/src/local-metadata/grl-local-metadata.c
index c9799d5..adc81f0 100644
--- a/src/local-metadata/grl-local-metadata.c
+++ b/src/local-metadata/grl-local-metadata.c
@@ -768,7 +768,6 @@ resolve_album_art (GrlSource *source,
 {
   const gchar *artist, *album;
   char *cache_uri = NULL;
-  char *thumbnail_uri = NULL;
 
   artist = grl_media_audio_get_artist (GRL_MEDIA_AUDIO (rs->media));
   album = grl_media_audio_get_album (GRL_MEDIA_AUDIO (rs->media));
@@ -778,9 +777,7 @@ resolve_album_art (GrlSource *source,
 
   media_art_get_path (artist, album, "album", &cache_uri);
 
-  if (thumbnail_uri)
-    grl_media_set_thumbnail (rs->media, thumbnail_uri);
-  else if (cache_uri)
+  if (cache_uri)
     grl_media_set_thumbnail (rs->media, cache_uri);
   else
     GRL_DEBUG ("Found no thumbnail for artist %s and album %s", artist, album);
@@ -788,7 +785,6 @@ resolve_album_art (GrlSource *source,
   rs->callback (rs->source, rs->operation_id, rs->media, rs->user_data, NULL);
 
   g_free (cache_uri);
-  g_free (thumbnail_uri);
 
   return FALSE;
 }


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