mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
Reset encoding mode to default for codecs with dynamic modes list,
when settings become incompatible with the chosen mode. E.g. for flac if -11 was selected and nonsubset modes are disabled, -7 is chosen instead.
This commit is contained in:
@@ -188,9 +188,11 @@ namespace CUETools.Codecs.WMA
|
||||
return formats;
|
||||
}
|
||||
|
||||
public override string GetSupportedModes()
|
||||
public override string GetSupportedModes(out string defaultMode)
|
||||
{
|
||||
return string.Join(" ", GetFormats(null).ConvertAll(s => s.modeName).ToArray());
|
||||
var fmts = GetFormats(null);
|
||||
defaultMode = fmts.Count > 0 ? fmts[fmts.Count - 1].modeName : "";
|
||||
return string.Join(" ", fmts.ConvertAll(s => s.modeName).ToArray());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user