content_info->media_meta.datetaken = __media_svc_get_exif_datetaken(ed);
content_info->media_meta.recorded_date = g_strdup(content_info->media_meta.datetaken);
+ if (content_info->media_meta.recorded_date == NULL)
+ content_info->media_meta.recorded_date = g_strdup(MEDIA_SVC_TAG_UNKNOWN);
if (__media_svc_get_exif_short(ed, EXIF_TAG_ORIENTATION, &orient_value)) {
if (orient_value <= ROT_270)
}
}
+ if (content_info->media_meta.recorded_date == NULL)
+ content_info->media_meta.recorded_date = g_strdup(MEDIA_SVC_TAG_UNKNOWN);
+ content_info->media_meta.datetaken = g_strdup(content_info->media_meta.recorded_date);
+
mmf_error = mm_file_get_attrs(tag, MM_FILE_TAG_DATE, &p, &size, NULL);
if (mmf_error == FILEINFO_ERROR_NONE && size == 4)
content_info->media_meta.year = g_strdup(p);
content_info->media_meta.recorded_date = g_strdup(p);
}
}
+ if (content_info->media_meta.recorded_date == NULL)
+ content_info->media_meta.recorded_date = g_strdup(MEDIA_SVC_TAG_UNKNOWN);
+ content_info->media_meta.datetaken = g_strdup(content_info->media_meta.recorded_date);
mmf_error = mm_file_destroy_tag_attrs(tag);
if (mmf_error != FILEINFO_ERROR_NONE)