#define SRC_BTN_MUSIC_NEXT "next"
/* images */
+#define IMAGE_MUSIC_THUMBNAIL IMAGEDIR"/ic_thumbnail_song_player.png"
+
#define IMAGE_MUSIC_PREV_FOCUS "btn_music_contr_previous_foc.png"
#define IMAGE_MUSIC_PREV_NORMAL "btn_music_contr_previous_nor.png"
#define IMAGE_MUSIC_PLAY_FOCUS "btn_music_contr_play_foc.png"
static void _draw_thumbnail(struct _priv *priv, app_media_info *mi)
{
- elm_image_file_set(priv->thumb, mi->thumbnail_path, NULL);
+ char *path;
+
+ if (mi->thumbnail_path)
+ path = mi->thumbnail_path;
+ else
+ path = IMAGE_MUSIC_THUMBNAIL;
+
+ elm_image_file_set(priv->thumb, path, NULL);
elm_object_part_content_set(priv->base,
PART_MPLAYER_THUMB, priv->thumb);
}