summaryrefslogtreecommitdiffstats
path: root/win/C#/Controls/Subtitles.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/C#/Controls/Subtitles.cs')
-rw-r--r--win/C#/Controls/Subtitles.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/win/C#/Controls/Subtitles.cs b/win/C#/Controls/Subtitles.cs
index e4142bd44..e23718c0a 100644
--- a/win/C#/Controls/Subtitles.cs
+++ b/win/C#/Controls/Subtitles.cs
@@ -22,6 +22,8 @@ namespace Handbrake.Controls
}
private int FileContainer;
+
+ // Public Functions
public void setSubtitleTrackAuto()
{
// Handle Native Language and "Dub Foreign language audio" and "Use Foreign language audio and Subtitles" Options
@@ -57,6 +59,18 @@ namespace Handbrake.Controls
}
}
}
+ public Boolean RequiresM4V()
+ {
+ foreach (ListViewItem item in lv_subList.Items)
+ {
+ if (!string.IsNullOrEmpty(item.SubItems[5].Text))
+ return true;
+
+ if (item.SubItems[1].Text.Contains("(Text)"))
+ return true;
+ }
+ return false;
+ }
// Controls
private void btn_addSubTrack_Click(object sender, EventArgs e)