mirror of
https://github.com/mpv-player/mpv
synced 2025-02-20 14:56:55 +00:00
command: allow changing some OSD-related options even with no VO
If no VO was open, these options couldn't be changed or even queried. Although these properties are nearly useless if no VO exists, there's actually no good reason to forbid querying or setting them. Also, even if the VO is created, it doesn't mean the VO window was created.
This commit is contained in:
parent
60ca2d8f4d
commit
4a0bbe256e
@ -2329,8 +2329,6 @@ static int property_osd_helper(void *ctx, struct m_property *prop,
|
||||
int action, void *arg)
|
||||
{
|
||||
MPContext *mpctx = ctx;
|
||||
if (!mpctx->video_out)
|
||||
return M_PROPERTY_UNAVAILABLE;
|
||||
if (action == M_PROPERTY_SET)
|
||||
osd_changed_all(mpctx->osd);
|
||||
return mp_property_generic_option(mpctx, prop, action, arg);
|
||||
|
Loading…
Reference in New Issue
Block a user