summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrakeWPF')
-rw-r--r--win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs b/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs
index 31f315f7e..a53996b0f 100644
--- a/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs
+++ b/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs
@@ -14,6 +14,7 @@ namespace HandBrakeWPF.Services.Encode.Factories
using System.Globalization;
using System.Linq;
using System.Runtime.InteropServices;
+ using System.Runtime.InteropServices.ComTypes;
using HandBrake.ApplicationServices.Interop;
using HandBrake.ApplicationServices.Interop.HbLib;
@@ -360,7 +361,7 @@ namespace HandBrakeWPF.Services.Encode.Factories
Mixdown = mixdown != null ? mixdown.Id : -1,
NormalizeMixLevel = false,
Samplerate = sampleRate != null ? sampleRate.Rate : 0,
- Name = item.TrackName,
+ Name = !string.IsNullOrEmpty(item.TrackName) ? item.TrackName : null,
};
if (!item.IsPassthru)