summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'command.c')
-rw-r--r--command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/command.c b/command.c
index 2a51b244c7..88f0a663dd 100644
--- a/command.c
+++ b/command.c
@@ -1360,8 +1360,8 @@ static int mp_property_sub(m_option_t *prop, int action, void *arg,
int source = -1, reset_spu = 0;
char *sub_name;
- if (global_sub_size <= 0)
- return M_PROPERTY_UNAVAILABLE;
+ if (!mpctx->sh_video || global_sub_size <= 0)
+ return M_PROPERTY_UNAVAILABLE;
switch (action) {
case M_PROPERTY_GET: