music: set default thumbnail image for now playing item 84/54184/1
authorJehun Lim <jehun.lim@samsung.com>
Mon, 14 Dec 2015 04:18:31 +0000 (13:18 +0900)
committerJehun Lim <jehun.lim@samsung.com>
Mon, 14 Dec 2015 04:26:53 +0000 (13:26 +0900)
Change-Id: I74091d06ccde583d9d4fdf011056420a721ad0f3
Signed-off-by: Jehun Lim <jehun.lim@samsung.com>
src/layout/music.c

index 7c915d2..d3ff9a5 100644 (file)
@@ -70,6 +70,7 @@ static bool _update_playing_info(void *data, Evas_Object *base)
        Evas_Object *content, *image;
        app_media_info *info;
        struct _priv *priv;
+       const char *thumbnail_path;
 
        if (!data || !base) {
                _ERR("invalid argument");
@@ -97,7 +98,12 @@ static bool _update_playing_info(void *data, Evas_Object *base)
                return false;
        }
 
-       elm_image_file_set(image, info->thumbnail_path, NULL);
+       if (info->thumbnail_path)
+               thumbnail_path = info->thumbnail_path;
+       else
+               thumbnail_path = IMAGE_MUSIC_THUMBNAIL;
+
+       elm_image_file_set(image, thumbnail_path, NULL);
        elm_image_aspect_fixed_set(image, EINA_FALSE);
 
        elm_object_part_text_set(content, PART_PLAYING_CONTENT_TITLE,