diff options
author | Ben Boeckel <mathstuf@gmail.com> | 2015-08-12 21:45:04 -0400 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2015-08-14 06:21:26 +1000 |
commit | f7c52c8aa8e2a4ccfd98e3ba8d6dbfa04d75a17b (patch) | |
tree | 37cfb7f86121b5c104176693383fa29e11eb9fc4 /src/metaflac/options.c | |
parent | 15a9062609c123b56df104a575dba657c2577e0b (diff) | |
download | flac-f7c52c8aa8e2a4ccfd98e3ba8d6dbfa04d75a17b.tar.gz |
metaflac: add --scan-replay-gain option
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
Diffstat (limited to 'src/metaflac/options.c')
-rw-r--r-- | src/metaflac/options.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/metaflac/options.c b/src/metaflac/options.c index db60d4ef..9d15443a 100644 --- a/src/metaflac/options.c +++ b/src/metaflac/options.c @@ -79,6 +79,7 @@ struct share__option long_options_[] = { { "export-picture-to", 1, 0, 0 }, { "add-seekpoint", 1, 0, 0 }, { "add-replay-gain", 0, 0, 0 }, + { "scan-replay-gain", 0, 0, 0 }, { "remove-replay-gain", 0, 0, 0 }, { "add-padding", 1, 0, 0 }, /* major operations */ @@ -612,6 +613,9 @@ FLAC__bool parse_option(int option_index, const char *option_argument, CommandLi else if(0 == strcmp(opt, "add-replay-gain")) { (void) append_shorthand_operation(options, OP__ADD_REPLAY_GAIN); } + else if(0 == strcmp(opt, "scan-replay-gain")) { + (void) append_shorthand_operation(options, OP__SCAN_REPLAY_GAIN); + } else if(0 == strcmp(opt, "remove-replay-gain")) { const FLAC__byte * const tags[5] = { GRABBAG__REPLAYGAIN_TAG_REFERENCE_LOUDNESS, |