Set the fullscreen option value too when fs state changes

If the fullscreen state was changed via keyboard commands or the slave
interface the option value was not changed. However that value is used
if the VO is reconfigured. Set the option too to avoid switching
back to the previous state in that case.
This commit is contained in:
Uoti Urpala 2009-03-20 02:56:49 +02:00
parent 73fb23c1cf
commit 8d25a357ef
1 changed files with 1 additions and 0 deletions

View File

@ -1027,6 +1027,7 @@ static int mp_property_fullscreen(m_option_t *prop, int action, void *arg,
#endif
if (mpctx->video_out->config_ok)
vo_control(mpctx->video_out, VOCTRL_FULLSCREEN, 0);
mpctx->opts.fullscreen = vo_fs;
return M_PROPERTY_OK;
default:
return m_property_flag(prop, action, arg, &vo_fs);