Mercurial > mplayer.hg
changeset 21012:738a492561e2
When changing playback speed write the current speed to OSD only after
build_afilter_chain() which can alter the value.
(Though I'm not sure whether the current limits in build_afilter_chain
are necessary or correct.)
author | uau |
---|---|
date | Sat, 18 Nov 2006 15:50:31 +0000 |
parents | b3fbda23e570 |
children | d1dc552a6aff |
files | mplayer.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mplayer.c Sat Nov 18 15:17:50 2006 +0000 +++ b/mplayer.c Sat Nov 18 15:50:31 2006 +0000 @@ -4822,20 +4822,20 @@ case MP_CMD_SPEED_INCR : { float v = cmd->args[0].v.f; playback_speed += v; + build_afilter_chain(sh_audio, &ao_data); set_osd_msg(OSD_MSG_SPEED,1,osd_duration,MSGTR_OSDSpeed, playback_speed); - build_afilter_chain(sh_audio, &ao_data); } break; case MP_CMD_SPEED_MULT : { float v = cmd->args[0].v.f; playback_speed *= v; + build_afilter_chain(sh_audio, &ao_data); set_osd_msg(OSD_MSG_SPEED,1,osd_duration,MSGTR_OSDSpeed, playback_speed); - build_afilter_chain(sh_audio, &ao_data); } break; case MP_CMD_SPEED_SET : { float v = cmd->args[0].v.f; playback_speed = v; + build_afilter_chain(sh_audio, &ao_data); set_osd_msg(OSD_MSG_SPEED,1,osd_duration,MSGTR_OSDSpeed, playback_speed); - build_afilter_chain(sh_audio, &ao_data); } break; case MP_CMD_FRAME_STEP : case MP_CMD_PAUSE : {