mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
CUETools: Fix crash when selecting wav
This commit is contained in:
@@ -24,17 +24,11 @@ namespace CUETools.Codecs
|
|||||||
// Iterate through each property and call ResetValue()
|
// Iterate through each property and call ResetValue()
|
||||||
foreach (PropertyDescriptor property in TypeDescriptor.GetProperties(this))
|
foreach (PropertyDescriptor property in TypeDescriptor.GetProperties(this))
|
||||||
property.ResetValue(this);
|
property.ResetValue(this);
|
||||||
|
this.m_supported_modes = supported_modes;
|
||||||
|
this.m_default_mode = default_mode;
|
||||||
if (default_mode == "")
|
if (default_mode == "")
|
||||||
{
|
|
||||||
GetSupportedModes(out default_mode);
|
GetSupportedModes(out default_mode);
|
||||||
this.EncoderMode = 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;
|
protected string m_supported_modes;
|
||||||
|
|||||||
Reference in New Issue
Block a user