Flake/FLACCL cmd line tools were forcing user to specify compression level,

because default comprssion level was not set properly in settings constructor.
This commit is contained in:
Grigory Chudov
2013-06-02 18:22:07 -04:00
parent 5f8a7d9652
commit fc74fc5ad5
4 changed files with 15 additions and 8 deletions

View File

@@ -24,10 +24,17 @@ namespace CUETools.Codecs
// Iterate through each property and call ResetValue()
foreach (PropertyDescriptor property in TypeDescriptor.GetProperties(this))
property.ResetValue(this);
this.m_supported_modes = supported_modes;
this.m_default_mode = default_mode;
//GetSupportedModes(out m_default_mode);
this.EncoderMode = m_default_mode;
if (default_mode == "")
{
GetSupportedModes(out default_mode);
this.EncoderMode = default_mode;
}
else
{
this.m_supported_modes = supported_modes;
this.m_default_mode = default_mode;
this.EncoderMode = m_default_mode;
}
}
protected string m_supported_modes;