summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'command.c')
-rw-r--r--command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/command.c b/command.c
index b18080b6a4..1f9bf1e4f5 100644
--- a/command.c
+++ b/command.c
@@ -835,6 +835,8 @@ static int mp_property_audio(m_option_t * prop, int action, void *arg,
case M_PROPERTY_STEP_UP:
case M_PROPERTY_SET:
+ if (!mpctx->demuxer)
+ return M_PROPERTY_UNAVAILABLE;
if (action == M_PROPERTY_SET && arg)
tmp = *((int *) arg);
else