From a7c6c4656de1938729d27fb6f02b7e46a71c35fb Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 14 Apr 2014 20:29:23 +0200 Subject: New option --no-ometadata to opt out of including metadata when encoding. This re-allows the previous behaviour of being able to reencode with metadata removed, which is useful when encoding "inconsistently" tagged data for a device/player that shows file names when tags are not present. --- options/options.c | 4 ++++ options/options.h | 1 + 2 files changed, 5 insertions(+) (limited to 'options') diff --git a/options/options.c b/options/options.c index 42ca0846d9..82b81b049d 100644 --- a/options/options.c +++ b/options/options.c @@ -635,6 +635,7 @@ const m_option_t mp_opts[] = { OPT_FLAG("oneverdrop", encode_output.neverdrop, CONF_GLOBAL), OPT_FLAG("ovfirst", encode_output.video_first, CONF_GLOBAL), OPT_FLAG("oafirst", encode_output.audio_first, CONF_GLOBAL), + OPT_FLAG("ometadata", encode_output.metadata, CONF_GLOBAL), #endif {NULL, NULL, 0, 0, 0, 0, NULL} @@ -766,6 +767,9 @@ const struct MPOpts mp_default_opts = { #endif .default_bindings = 1, }, + .encode_output = { + .metadata = 1, + }, }; #endif /* MPLAYER_CFG_MPLAYER_H */ diff --git a/options/options.h b/options/options.h index 3b9ddeedc7..3572789c5a 100644 --- a/options/options.h +++ b/options/options.h @@ -302,6 +302,7 @@ typedef struct MPOpts { int neverdrop; int video_first; int audio_first; + int metadata; } encode_output; } MPOpts; -- cgit v1.2.3