summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-09-21 16:01:53 +0200
committerwm4 <wm4@nowhere>2014-09-21 16:01:53 +0200
commit4a0bbe256ef866d0f80ee56af4d5fd4c65cd8d5b (patch)
treef9a82292d8b5990dbdcfbccfeea106a540dfcbd5 /player/command.c
parent60ca2d8f4d93f7a8535a00cf36f1fd57a06d0088 (diff)
downloadmpv-4a0bbe256ef866d0f80ee56af4d5fd4c65cd8d5b.tar.bz2
mpv-4a0bbe256ef866d0f80ee56af4d5fd4c65cd8d5b.tar.xz
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.
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/player/command.c b/player/command.c
index 0c0b28d5f4..565fcf372e 100644
--- a/player/command.c
+++ b/player/command.c
@@ -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);