Commit 02af4beb authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Change the arguments of the video_player_start

This should make it closer to pf_start
parent 6fa63363
......@@ -286,7 +286,7 @@ intf_video_player_play(interface *intf, const char *psz_path)
/* */
evas_object_show(view);
video_player_start(intf->video_player, psz_path);
video_player_start(intf->video_player->p_view_sys, psz_path);
/* We want fullscreen */
elm_win_indicator_mode_set(intf->win, ELM_WIN_INDICATOR_HIDE);
......
......@@ -192,17 +192,17 @@ layout_touch_up_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED
}
bool
video_player_start(interface_view *view, const char* file_path)
video_player_start(view_sys *p_view_sys, const char* file_path)
{
media_item *p_mi = media_item_create(file_path, MEDIA_ITEM_TYPE_VIDEO);
if (!p_mi)
return false;
LOGE("playback_service_start: %s", p_mi->psz_path);
playback_service_set_context(view->p_view_sys->p_ps, PLAYLIST_CONTEXT_VIDEO);
playback_service_set_context(p_view_sys->p_ps, PLAYLIST_CONTEXT_VIDEO);
playback_service_list_append(view->p_view_sys->p_ps, p_mi);
playback_service_start(view->p_view_sys->p_ps, 0);
playback_service_list_append(p_view_sys->p_ps, p_mi);
playback_service_start(p_view_sys->p_ps, 0);
return true;
}
......
......@@ -33,7 +33,7 @@ interface_view*
create_video_player(playback_service *p_ps, Evas_Object *parent);
bool
video_player_start(interface_view*, const char*);
video_player_start(view_sys*, const char*);
void
destroy_video_player(interface_view *);
......
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