Commit 737f6e72 authored by Thomas Guillem's avatar Thomas Guillem

playback_service: change playback_service_set_evas_video

it returns the emotion evas_object created from evas.
parent 7303ed00
......@@ -278,7 +278,7 @@ playback_service_unregister_callbacks(playback_service *p_ps, void *p_id)
p_ps->p_cbs_list = eina_list_remove(p_ps->p_cbs_list, p_id);
}
int
Evas_Object *
playback_service_set_evas_video(playback_service *p_ps, Evas *p_evas)
{
if (p_ps->p_ev)
......@@ -290,13 +290,16 @@ playback_service_set_evas_video(playback_service *p_ps, Evas *p_evas)
{
p_ps->p_ev = ps_emotion_create(p_ps, p_evas, false);
if (!p_ps->p_ev)
return -1;
return NULL;
p_ps->p_e = p_ps->p_ev;
return p_ps->p_ev;
}
else
{
p_ps->p_e = p_ps->p_ea;
return 0;
return NULL;
}
}
......
......@@ -64,7 +64,7 @@ playback_service_register_callbacks(playback_service *p_ps, playback_service_cal
void
playback_service_unregister_callbacks(playback_service *p_ps, void *p_id);
int
Evas_Object *
playback_service_set_evas_video(playback_service *p_ps, Evas *p_evas);
int
......
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