Mercurial > mplayer.hg
comparison mplayer.c @ 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 | ae51c2fe7310 |
children | 2ec157c79f2f |
comparison
equal
deleted
inserted
replaced
21011:b3fbda23e570 | 21012:738a492561e2 |
---|---|
4820 mpcodecs_config_vo (sh_video, sh_video->disp_w, sh_video->disp_h, 0); | 4820 mpcodecs_config_vo (sh_video, sh_video->disp_w, sh_video->disp_h, 0); |
4821 } break; | 4821 } break; |
4822 case MP_CMD_SPEED_INCR : { | 4822 case MP_CMD_SPEED_INCR : { |
4823 float v = cmd->args[0].v.f; | 4823 float v = cmd->args[0].v.f; |
4824 playback_speed += v; | 4824 playback_speed += v; |
4825 build_afilter_chain(sh_audio, &ao_data); | |
4825 set_osd_msg(OSD_MSG_SPEED,1,osd_duration,MSGTR_OSDSpeed, playback_speed); | 4826 set_osd_msg(OSD_MSG_SPEED,1,osd_duration,MSGTR_OSDSpeed, playback_speed); |
4826 build_afilter_chain(sh_audio, &ao_data); | |
4827 } break; | 4827 } break; |
4828 case MP_CMD_SPEED_MULT : { | 4828 case MP_CMD_SPEED_MULT : { |
4829 float v = cmd->args[0].v.f; | 4829 float v = cmd->args[0].v.f; |
4830 playback_speed *= v; | 4830 playback_speed *= v; |
4831 build_afilter_chain(sh_audio, &ao_data); | |
4831 set_osd_msg(OSD_MSG_SPEED,1,osd_duration,MSGTR_OSDSpeed, playback_speed); | 4832 set_osd_msg(OSD_MSG_SPEED,1,osd_duration,MSGTR_OSDSpeed, playback_speed); |
4832 build_afilter_chain(sh_audio, &ao_data); | |
4833 } break; | 4833 } break; |
4834 case MP_CMD_SPEED_SET : { | 4834 case MP_CMD_SPEED_SET : { |
4835 float v = cmd->args[0].v.f; | 4835 float v = cmd->args[0].v.f; |
4836 playback_speed = v; | 4836 playback_speed = v; |
4837 build_afilter_chain(sh_audio, &ao_data); | |
4837 set_osd_msg(OSD_MSG_SPEED,1,osd_duration,MSGTR_OSDSpeed, playback_speed); | 4838 set_osd_msg(OSD_MSG_SPEED,1,osd_duration,MSGTR_OSDSpeed, playback_speed); |
4838 build_afilter_chain(sh_audio, &ao_data); | |
4839 } break; | 4839 } break; |
4840 case MP_CMD_FRAME_STEP : | 4840 case MP_CMD_FRAME_STEP : |
4841 case MP_CMD_PAUSE : { | 4841 case MP_CMD_PAUSE : { |
4842 cmd->pausing = 1; | 4842 cmd->pausing = 1; |
4843 brk_cmd = 1; | 4843 brk_cmd = 1; |