diff options
author | sr55 <[email protected]> | 2019-08-03 20:17:02 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2019-08-12 18:41:56 +0100 |
commit | 8d44138c667004478818749914355cd794cbb561 (patch) | |
tree | f04263fd1305146e1191f2d28860211a28545948 /win/CS/HandBrake.Interop | |
parent | d5cfa90ad9ac1f822ee2a7bf27416ca2ec44ff65 (diff) |
WinGui: Add Support for Subtitle Track Naming. Auto-populate the Track name for both Audio/Subtitles if the source track has it available and we support reading it from that type of source file. #855 #2213
Diffstat (limited to 'win/CS/HandBrake.Interop')
3 files changed, 7 insertions, 1 deletions
diff --git a/win/CS/HandBrake.Interop/Interop/Json/Encode/SubtitleTrack.cs b/win/CS/HandBrake.Interop/Interop/Json/Encode/SubtitleTrack.cs index 9c4456e9b..53f2a404d 100644 --- a/win/CS/HandBrake.Interop/Interop/Json/Encode/SubtitleTrack.cs +++ b/win/CS/HandBrake.Interop/Interop/Json/Encode/SubtitleTrack.cs @@ -44,6 +44,8 @@ namespace HandBrake.Interop.Interop.Json.Encode /// </summary> public int Track { get; set; } + public string Name { get; set; } + /// <summary> /// Gets or sets the srt. /// </summary> diff --git a/win/CS/HandBrake.Interop/Interop/Json/Scan/SourceAudioTrack.cs b/win/CS/HandBrake.Interop/Interop/Json/Scan/SourceAudioTrack.cs index e0d9bafd8..b373ae5c7 100644 --- a/win/CS/HandBrake.Interop/Interop/Json/Scan/SourceAudioTrack.cs +++ b/win/CS/HandBrake.Interop/Interop/Json/Scan/SourceAudioTrack.cs @@ -58,5 +58,7 @@ namespace HandBrake.Interop.Interop.Json.Scan public int ChannelCount { get; set; } public AudioAttributes Attributes { get; set; } + + public string Name { get; set; } } }
\ No newline at end of file diff --git a/win/CS/HandBrake.Interop/Interop/Json/Scan/SourceSubtitleTrack.cs b/win/CS/HandBrake.Interop/Interop/Json/Scan/SourceSubtitleTrack.cs index eaeda2a69..d506af086 100644 --- a/win/CS/HandBrake.Interop/Interop/Json/Scan/SourceSubtitleTrack.cs +++ b/win/CS/HandBrake.Interop/Interop/Json/Scan/SourceSubtitleTrack.cs @@ -1,5 +1,5 @@ // -------------------------------------------------------------------------------------------------------------------- -// <copyright file="SourceSubtitleTrack.cs" company="HandBrake Project (http://handbrake.fr)"> +// <copyright file="SourceSubtitleTrack.cs" company="HandBrake Project (https://handbrake.fr)"> // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // </copyright> // <summary> @@ -36,6 +36,8 @@ namespace HandBrake.Interop.Interop.Json.Scan public string SourceName { get; set; } + public string Name { get; set; } + /// <summary> /// Gets or sets subtitle attribute information. /// </summary> |