Commit 65a2ff92 authored by Thomas Guillem's avatar Thomas Guillem

playback_service: notification only for video (for now)

parent 40cee732
......@@ -176,7 +176,8 @@ ps_emotion_position_update_cb(void *data, Evas_Object *obj, void *event)
double i_pos = (i_time > 0.0 && i_len > 0.0) ? i_time / i_len : 0.0;
/* update position every 1 % */
if (fabs(p_ps->i_last_notification_pos - i_pos) > 0.01f)
if (p_ps->i_ctx != PLAYLIST_CONTEXT_VIDEO
&& fabs(p_ps->i_last_notification_pos - i_pos) > 0.01f)
{
notification_set_progress(p_ps->p_notification, i_pos);
notification_update(p_ps->p_notification);
......@@ -199,7 +200,8 @@ ps_emotion_play_started_cb(void *data, Evas_Object *obj, void *event)
PS_SEND_CALLBACK(pf_on_started, media_list_get_item(p_ps->p_ml));
ps_notification_update_meta(p_ps, p_mi);
if (p_ps->i_ctx != PLAYLIST_CONTEXT_VIDEO)
ps_notification_update_meta(p_ps, p_mi);
}
static void
......
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