diff options
author | sr55 <[email protected]> | 2008-11-29 14:44:26 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2008-11-29 14:44:26 +0000 |
commit | a3d2f381f31a0bcb7a38a9335768e169fb69793e (patch) | |
tree | 5aa2bb6b807c531403544bb6eec3329466b9e52b /win/C#/Parsing | |
parent | 80eb2f5952cf5d0250be389f507355b31d42de6c (diff) |
WinGui:
- Small display issue fixed. If audio tracks have no sub format. (e.g Director's Commentary), "()" would be displayed. Thanks Canvas (http://forum.handbrake.fr/viewforum.php?f=12)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1968 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Parsing')
-rw-r--r-- | win/C#/Parsing/AudioTrack.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/win/C#/Parsing/AudioTrack.cs b/win/C#/Parsing/AudioTrack.cs index 129ae78a7..493fb4dff 100644 --- a/win/C#/Parsing/AudioTrack.cs +++ b/win/C#/Parsing/AudioTrack.cs @@ -94,7 +94,10 @@ namespace Handbrake.Parsing /// <returns>A string formatted as: {track #} {language} ({format}) ({sub-format})</returns>
public override string ToString()
{
- return string.Format("{0} {1} ({2}) ({3})", this.m_trackNumber, this.m_language, this.m_format, this.m_subFormat);
+ if (this.m_subFormat == null)
+ return string.Format("{0} {1} ({2})", this.m_trackNumber, this.m_language, this.m_format);
+ else
+ return string.Format("{0} {1} ({2}) ({3})", this.m_trackNumber, this.m_language, this.m_format, this.m_subFormat);
}
public static AudioTrack Parse(StringReader output)
|