mirror of
https://github.com/mpv-player/mpv
synced 2025-01-20 22:40:52 +00:00
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
This commit is contained in:
parent
24be79ae8b
commit
4799a07cf1
@ -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 : {
|
||||
|
Loading…
Reference in New Issue
Block a user