From: antognolli Date: Tue, 6 Sep 2011 12:37:03 +0000 (+0000) Subject: emotion/generic: Don't send position update when skipping frames. X-Git-Tag: submit/2.0alpha-wayland/20121127.222018~145 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=981dcb2725365168a672d0c489dd5f52f4d50f57;p=profile%2Fivi%2Femotion.git emotion/generic: Don't send position update when skipping frames. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/emotion@63227 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/generic_players/vlc/emotion_generic_vlc.c b/src/generic_players/vlc/emotion_generic_vlc.c index dfa0962..4fb8ba0 100644 --- a/src/generic_players/vlc/emotion_generic_vlc.c +++ b/src/generic_players/vlc/emotion_generic_vlc.c @@ -223,6 +223,8 @@ _send_time_changed(struct _App *app, const struct libvlc_event_t *ev) { float new_time = ev->u.media_player_time_changed.new_time; new_time /= 1000; + if (app->vs->frame_drop > 1) + return; _send_cmd_start(app, EM_RESULT_POSITION_CHANGED); SEND_CMD_PARAM(app, new_time); _send_cmd_finish(app);