summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c
diff options
context:
space:
mode:
authorRafael Antognolli <antognolli@gmail.com>2011-09-06 12:37:03 +0000
committerRafael Antognolli <antognolli@gmail.com>2011-09-06 12:37:03 +0000
commit2ee03004d6c3f09617cc8f562bd5e3a94fdd6fbd (patch)
tree01356abf670b784149397b41c0757f329177198b /legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c
parent98b5aa4b363284f2c81f31a28a84928e9132f619 (diff)
emotion/generic: Don't send position update when skipping frames.
SVN revision: 63227
Diffstat (limited to '')
-rw-r--r--legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c b/legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c
index dfa0962132..4fb8ba0b45 100644
--- a/legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c
+++ b/legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c
@@ -223,6 +223,8 @@ _send_time_changed(struct _App *app, const struct libvlc_event_t *ev)
223{ 223{
224 float new_time = ev->u.media_player_time_changed.new_time; 224 float new_time = ev->u.media_player_time_changed.new_time;
225 new_time /= 1000; 225 new_time /= 1000;
226 if (app->vs->frame_drop > 1)
227 return;
226 _send_cmd_start(app, EM_RESULT_POSITION_CHANGED); 228 _send_cmd_start(app, EM_RESULT_POSITION_CHANGED);
227 SEND_CMD_PARAM(app, new_time); 229 SEND_CMD_PARAM(app, new_time);
228 _send_cmd_finish(app); 230 _send_cmd_finish(app);