mirror of https://github.com/mpv-player/mpv
switch_ratio -1 slave command restores aspect ratio to default value (geexbox patch)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18822 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
be1d649e96
commit
5c6bf0cfe7
|
@ -4223,7 +4223,7 @@ if(step_sec>0) {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MP_CMD_SWITCH_RATIO : {
|
case MP_CMD_SWITCH_RATIO : {
|
||||||
if (cmd->nargs == 0)
|
if (cmd->nargs == 0 || cmd->args[0].v.f == -1)
|
||||||
movie_aspect = (float) sh_video->disp_w / sh_video->disp_h;
|
movie_aspect = (float) sh_video->disp_w / sh_video->disp_h;
|
||||||
else
|
else
|
||||||
movie_aspect = cmd->args[0].v.f;
|
movie_aspect = cmd->args[0].v.f;
|
||||||
|
|
Loading…
Reference in New Issue