summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-09-15 01:10:59 +0200
committerwm4 <wm4@nowhere>2012-10-12 10:10:30 +0200
commit4e2fab5846d2fe7f51a799abb4118515efac854b (patch)
treefd32851eecd1f89580620d4f1ecb242ab3bb7c28 /mplayer.c
parentcd25a671b58a94fbfa1942103137ad6617170a32 (diff)
downloadmpv-4e2fab5846d2fe7f51a799abb4118515efac854b.tar.bz2
mpv-4e2fab5846d2fe7f51a799abb4118515efac854b.tar.xz
commands: rename properties, update input.conf
Use "-" instead of "_" in property names. The intent is that property names and options names should be the same (if they refer to the same thing), and options use "-" as word separator. Rename some other properties too, e.g. "switch_audio" -> "audio". Add a way to translate the old property names to the new ones, similar to the input command legacy bridge. Update input.conf. Use the new property names, and don't use legacy commands.
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mplayer.c b/mplayer.c
index 2d1843203f..d910611d71 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -1003,7 +1003,7 @@ void init_vo_spudec(struct MPContext *mpctx)
if (vo_spudec != NULL) {
mpctx->initialized_flags |= INITIALIZED_SPUDEC;
- mp_property_do("sub_forced_only", M_PROPERTY_SET, &forced_subs_only,
+ mp_property_do("sub-forced-only", M_PROPERTY_SET, &forced_subs_only,
mpctx);
}
}
@@ -3486,7 +3486,7 @@ static void open_vobsubs_from_options(struct MPContext *mpctx)
mpctx->initialized_flags |= INITIALIZED_VOBSUB;
// TODO: let frontend do the selection
vobsub_set_from_lang(vo_vobsub, mpctx->opts.sub_lang);
- mp_property_do("sub_forced_only", M_PROPERTY_SET, &forced_subs_only,
+ mp_property_do("sub-forced-only", M_PROPERTY_SET, &forced_subs_only,
mpctx);
for (int i = 0; i < vobsub_get_indexes_count(vo_vobsub); i++) {