diff options
author | sr55 <[email protected]> | 2010-07-22 10:44:54 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-07-22 10:44:54 +0000 |
commit | 994b648e3ea1d42951221b9cdb0d2b5f4310b652 (patch) | |
tree | 95a33f1f00dd832944f558ca4bdb1f71198bf3d7 /win/C#/HandBrake.ApplicationServices/Parsing/AudioTrack.cs | |
parent | 8fc8e81a0856e8b859e675bf1df055f2d4bfbdac (diff) |
WinGui:
- Removed old settings debug tab, Code refactoring and some tweaks to stylecop so it's less noisy. Upgraded to Stylecop 4.4.0
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3452 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/HandBrake.ApplicationServices/Parsing/AudioTrack.cs')
-rw-r--r-- | win/C#/HandBrake.ApplicationServices/Parsing/AudioTrack.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/win/C#/HandBrake.ApplicationServices/Parsing/AudioTrack.cs b/win/C#/HandBrake.ApplicationServices/Parsing/AudioTrack.cs index 55cf524a5..4eba0b4c1 100644 --- a/win/C#/HandBrake.ApplicationServices/Parsing/AudioTrack.cs +++ b/win/C#/HandBrake.ApplicationServices/Parsing/AudioTrack.cs @@ -61,6 +61,10 @@ namespace HandBrake.ApplicationServices.Parsing public static AudioTrack Parse(StringReader output)
{
string audioTrack = output.ReadLine();
+
+ if (audioTrack == null)
+ return null;
+
Match m = Regex.Match(audioTrack, @"^ \+ ([0-9]*), ([A-Za-z0-9,\s]*) \((.*)\) \((.*)\)");
Match track = Regex.Match(audioTrack, @"^ \+ ([0-9]*), ([A-Za-z0-9,\s]*) \((.*)\)"); // ID and Language
Match iso639_2 = Regex.Match(audioTrack, @"iso639-2: ([a-zA-Z]*)\)");
|