From 6101f387c8a77de9e0a464ddd03fae96a3dc3c11 Mon Sep 17 00:00:00 2001 From: sr55 Date: Fri, 30 Aug 2019 22:11:59 +0100 Subject: WinGui: Treat empty string as null for Subtitle Name. #2275 --- win/CS/HandBrake.Interop/Interop/Json/Encode/SubtitleTrack.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'win/CS') diff --git a/win/CS/HandBrake.Interop/Interop/Json/Encode/SubtitleTrack.cs b/win/CS/HandBrake.Interop/Interop/Json/Encode/SubtitleTrack.cs index 53f2a404d..4e0d79857 100644 --- a/win/CS/HandBrake.Interop/Interop/Json/Encode/SubtitleTrack.cs +++ b/win/CS/HandBrake.Interop/Interop/Json/Encode/SubtitleTrack.cs @@ -14,6 +14,8 @@ namespace HandBrake.Interop.Interop.Json.Encode /// public class SubtitleTrack { + private string name; + /// /// Gets or sets a value indicating whether burn. /// @@ -44,7 +46,11 @@ namespace HandBrake.Interop.Interop.Json.Encode /// public int Track { get; set; } - public string Name { get; set; } + public string Name + { + get => string.IsNullOrEmpty(this.name) ? null : this.name; + set => this.name = value; + } /// /// Gets or sets the srt. -- cgit v1.2.3