summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'command.c')
-rw-r--r--command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/command.c b/command.c
index 4e1a6c87ab..9084ff37df 100644
--- a/command.c
+++ b/command.c
@@ -396,7 +396,7 @@ static int mp_property_chapter(m_option_t *prop, int action, void *arg,
if (mpctx->demuxer)
chapter = get_current_chapter(mpctx);
- if (chapter < 0)
+ if (chapter < -1)
return M_PROPERTY_UNAVAILABLE;
switch (action) {