Commit 46ac3898 authored by Ludovic Fauvet's avatar Ludovic Fauvet

playback service: fix loading of meta

Don't erase meta given by the media library if emotion isn't able to
provide them.
parent f1ef1493
......@@ -195,10 +195,14 @@ ps_emotion_play_started_cb(void *data, Evas_Object *obj, void *event)
{
playback_service *p_ps = data;
media_item *p_mi = media_list_get_item(p_ps->p_ml);
const char *meta;
for (unsigned int i = 0; i < EMOTION_META_INFO_TRACK_COUNT; ++i)
media_item_set_meta(p_mi, META_EMOTIOM_TO_MEDIA_ITEM[i],
emotion_object_meta_info_get(obj, i));
{
meta = emotion_object_meta_info_get(obj, i);
if (meta != NULL)
media_item_set_meta(p_mi, META_EMOTIOM_TO_MEDIA_ITEM[i], meta);
}
PS_SEND_CALLBACK(pf_on_started, p_mi);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment