]> granicus.if.org Git - handbrake/commitdiff
WinGui: Update EncoderHelpers for Subtitle changes
authorsr55 <sr55.hb@outlook.com>
Mon, 14 Jan 2019 22:21:54 +0000 (22:21 +0000)
committersr55 <sr55.hb@outlook.com>
Mon, 14 Jan 2019 22:21:54 +0000 (22:21 +0000)
win/CS/HandBrake.Interop/Interop/HandBrakeEncoderHelpers.cs

index c7a839ceb7348d492574bde5d3253ab31f9693b5..7e6586bda8ea2412f74c39a88418a3e3f369fa85 100644 (file)
@@ -162,6 +162,17 @@ namespace HandBrake.Interop.Interop
             }
         }
 
+        /// <summary>
+        /// Gets a value indicating whether SRT subtitles can be burnt in.
+        /// </summary>
+        public static bool CanBurnSSA
+        {
+            get
+            {
+                return HBFunctions.hb_subtitle_can_burn((int)hb_subtitle_s_subsource.IMPORTSSA) > 0;
+            }
+        }
+
         /// <summary>
         /// Gets the audio encoder with the specified short name.
         /// </summary>
@@ -306,6 +317,7 @@ namespace HandBrake.Interop.Interop
                     return "CC708";
                 case hb_subtitle_s_subsource.IMPORTSRT:
                     return "SRT";
+                case hb_subtitle_s_subsource.IMPORTSSA:
                 case hb_subtitle_s_subsource.SSASUB:
                     return "SSA";
                 case hb_subtitle_s_subsource.TX3GSUB: