From 4799a07cf129fd7f9bd0850229a09eab466bf97d Mon Sep 17 00:00:00 2001 From: uau Date: Sat, 18 Nov 2006 15:50:31 +0000 Subject: 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.) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21028 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mplayer.c') diff --git a/mplayer.c b/mplayer.c index be1ece4629..393a64b690 100644 --- a/mplayer.c +++ b/mplayer.c @@ -4822,20 +4822,20 @@ if(step_sec>0) { case MP_CMD_SPEED_INCR : { float v = cmd->args[0].v.f; playback_speed += v; - set_osd_msg(OSD_MSG_SPEED,1,osd_duration,MSGTR_OSDSpeed, playback_speed); build_afilter_chain(sh_audio, &ao_data); + set_osd_msg(OSD_MSG_SPEED,1,osd_duration,MSGTR_OSDSpeed, playback_speed); } break; case MP_CMD_SPEED_MULT : { float v = cmd->args[0].v.f; playback_speed *= v; - set_osd_msg(OSD_MSG_SPEED,1,osd_duration,MSGTR_OSDSpeed, playback_speed); build_afilter_chain(sh_audio, &ao_data); + set_osd_msg(OSD_MSG_SPEED,1,osd_duration,MSGTR_OSDSpeed, playback_speed); } break; case MP_CMD_SPEED_SET : { float v = cmd->args[0].v.f; playback_speed = v; - set_osd_msg(OSD_MSG_SPEED,1,osd_duration,MSGTR_OSDSpeed, playback_speed); build_afilter_chain(sh_audio, &ao_data); + set_osd_msg(OSD_MSG_SPEED,1,osd_duration,MSGTR_OSDSpeed, playback_speed); } break; case MP_CMD_FRAME_STEP : case MP_CMD_PAUSE : { -- cgit v1.2.3