Commit 330e6732 authored by Thomas Guillem's avatar Thomas Guillem

playback_service: start take a second arg to start time

parent e8f7cc02
......@@ -156,7 +156,7 @@ ml_on_media_selected_cb(media_list *p_ml, void *p_user_data, unsigned int i_pos,
/* play new media */
playback_service_stop(p_ps);
if (i_pos >= 0)
playback_service_start(p_ps);
playback_service_start(p_ps, 0);
}
PS_SEND_CALLBACK(pf_on_media_selected, i_pos, p_mi);
}
......@@ -331,7 +331,7 @@ playback_service_set_evas_video(playback_service *p_ps, Evas *p_evas)
int
playback_service_start(playback_service *p_ps)
playback_service_start(playback_service *p_ps, double i_time)
{
media_item *p_mi;
......@@ -351,6 +351,8 @@ playback_service_start(playback_service *p_ps)
LOGE("emotion_object_file_set failed");
return -1;
}
if (i_time > 0)
emotion_object_position_set(p_ps->p_e, i_time);
p_ps->b_started = true;
return playback_service_play(p_ps);
......
......@@ -68,7 +68,7 @@ Evas_Object *
playback_service_set_evas_video(playback_service *p_ps, Evas *p_evas);
int
playback_service_start(playback_service *p_ps);
playback_service_start(playback_service *p_ps, double i_time);
int
playback_service_stop(playback_service *p_ps);
......
......@@ -1004,7 +1004,7 @@ create_base_player(mini_player *mpd, const char *file_path)
playback_service_list_clear(mpd->p_ps);
media_item *p_mi = media_item_create(file_path, MEDIA_ITEM_TYPE_AUDIO);
playback_service_list_append(mpd->p_ps, p_mi);
playback_service_start(mpd->p_ps);
playback_service_start(mpd->p_ps, 0);
update_player_display(mpd);
......
......@@ -165,7 +165,7 @@ create_video_gui(playback_service *p_ps, Evas_Object *parent, const char* file_p
playback_service_list_clear(vd->p_ps);
playback_service_list_append(vd->p_ps, p_mi);
playback_service_start(vd->p_ps);
playback_service_start(vd->p_ps, 0);
return layout;
}
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