{
const char *name;
const char *source;
+ const char *path;
char buf[32];
time_t video_time;
struct tm tm;
/* Source */
/* FIXME: when usb path is decided, this logic should be changed */
- if (!strncmp(m->mediadata->GetPath(), SOURCE_TV_PATH, SOURCE_PATH_LEN))
- source = SOURCE_TV;
- else
- source = SOURCE_USB;
- elm_object_part_text_set(m->base, PART_SOURCETEXT, _(source));
+ path = m->mediadata->GetPath();
+ if (path) {
+ if (!strncmp(path, SOURCE_TV_PATH, SOURCE_PATH_LEN))
+ source = SOURCE_TV;
+ else
+ source = SOURCE_USB;
+ elm_object_part_text_set(m->base, PART_SOURCETEXT, _(source));
+ }
/* Playlist Count */
snprintf(buf, sizeof(buf), "%d/%d",