summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-10-22 15:33:20 +0200
committerwm4 <wm4@nowhere>2016-10-22 15:34:15 +0200
commit11b8cbcce7efd02bee5c7427a4fa157bf20199e4 (patch)
treef9cb5dfc5b692755de6b0c1009495b38ecfe2700 /player
parent082340b467703d7734e185f0c4c2334d06f853a3 (diff)
downloadmpv-11b8cbcce7efd02bee5c7427a4fa157bf20199e4.tar.bz2
mpv-11b8cbcce7efd02bee5c7427a4fa157bf20199e4.tar.xz
command: fix reset-on-next-file=all and tv-freq option
The tv-freq options and properties use different types, thus must be treated as incompatible. Fixes an assertion with reset-on-next-file=all, which tries to set the option. Fixes #3708.
Diffstat (limited to 'player')
-rw-r--r--player/command.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c
index 1fa4695a91..0d5106227c 100644
--- a/player/command.c
+++ b/player/command.c
@@ -287,10 +287,11 @@ int mp_on_set_option(void *ctx, struct m_config_option *co, void *data, int flag
// OK, is handled separately: playlist
// OK, does not conflict on low level: audio-file, sub-file, external-file
// OK, different value ranges, but happens to work for now: volume, edition
+ // Incompatible: tv-freq
// All the other properties are deprecated in their current form.
static const char *const no_property[] = {
"demuxer", "idle", "length", "audio-samplerate", "audio-channels",
- "audio-format", "fps", "cache", "playlist-pos", "chapter",
+ "audio-format", "fps", "cache", "playlist-pos", "chapter", "tv-freq",
NULL
};