diff options
Diffstat (limited to 'player/command.c')
-rw-r--r-- | player/command.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c index c4cf6543d8..393966bb77 100644 --- a/player/command.c +++ b/player/command.c @@ -1045,6 +1045,8 @@ static int mp_property_edition(void *ctx, struct m_property *prop, struct demuxer *demuxer = mpctx->demuxer; if (action == M_PROPERTY_GET_CONSTRICTED_TYPE && demuxer) { + if (demuxer->num_editions <= 1) + return M_PROPERTY_UNAVAILABLE; *(struct m_option *)arg = (struct m_option){ .type = CONF_TYPE_INT, .min = 0, |