mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 08:37:59 +00:00
100l for playback speed changing in audio-only case
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13744 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
40a4d2586c
commit
f06a98dc9f
@ -2623,18 +2623,21 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still)
|
||||
case MP_CMD_SPEED_INCR : {
|
||||
float v = cmd->args[0].v.f;
|
||||
playback_speed += v;
|
||||
if (sh_video)
|
||||
osd_show_speed = sh_video->fps;
|
||||
build_afilter_chain(sh_audio, &ao_data);
|
||||
} break;
|
||||
case MP_CMD_SPEED_MULT : {
|
||||
float v = cmd->args[0].v.f;
|
||||
playback_speed *= v;
|
||||
if (sh_video)
|
||||
osd_show_speed = sh_video->fps;
|
||||
build_afilter_chain(sh_audio, &ao_data);
|
||||
} break;
|
||||
case MP_CMD_SPEED_SET : {
|
||||
float v = cmd->args[0].v.f;
|
||||
playback_speed = v;
|
||||
if (sh_video)
|
||||
osd_show_speed = sh_video->fps;
|
||||
build_afilter_chain(sh_audio, &ao_data);
|
||||
} break;
|
||||
|
Loading…
Reference in New Issue
Block a user