diff options
author | uau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-18 15:50:31 +0000 |
---|---|---|
committer | uau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-18 15:50:31 +0000 |
commit | 4799a07cf129fd7f9bd0850229a09eab466bf97d (patch) | |
tree | 64ab6d35a52f5489821a0194071e664a1548d69d | |
parent | 24be79ae8b0f2795bea95f5470aed1b529ea8e13 (diff) |
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
-rw-r--r-- | mplayer.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 : { |