summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJehun Lim <jehun.lim@samsung.com>2015-12-14 04:18:31 (GMT)
committerJehun Lim <jehun.lim@samsung.com>2015-12-14 04:26:53 (GMT)
commitb4f181e2a2d95df6df53abc84054b5533c110797 (patch)
treebf9237712fd41e29731a700ce23c7c4406215f64
parentc661dcbac8ed9ef252a29d706daf260bd6a2162c (diff)
downloadair_mediahub-b4f181e2a2d95df6df53abc84054b5533c110797.zip
air_mediahub-b4f181e2a2d95df6df53abc84054b5533c110797.tar.gz
air_mediahub-b4f181e2a2d95df6df53abc84054b5533c110797.tar.bz2
music: set default thumbnail image for now playing itemrefs/changes/84/54184/1
Change-Id: I74091d06ccde583d9d4fdf011056420a721ad0f3 Signed-off-by: Jehun Lim <jehun.lim@samsung.com>
-rw-r--r--src/layout/music.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/layout/music.c b/src/layout/music.c
index 7c915d2..d3ff9a5 100644
--- a/src/layout/music.c
+++ b/src/layout/music.c
@@ -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,