Minor fixes

This commit is contained in:
Nikolaj Olsson 2017-03-04 14:38:31 +01:00
parent a0ce39d113
commit c790596086
2 changed files with 4 additions and 6 deletions

View File

@ -4059,12 +4059,9 @@ namespace Nikse.SubtitleEdit.Forms
_timerAutoSave.Stop();
CheckAndGetNewlyDownloadedMpvDlls();
mediaPlayer.VideoPlayerContainerResize(null, null);
if (!string.IsNullOrEmpty(_videoFileName) &&
(oldVideoPlayer != Configuration.Settings.General.VideoPlayer && mediaPlayer.VideoPlayer != null) ||
(oldMpvVideoOutput != Configuration.Settings.General.MpvVideoOutput && Configuration.Settings.General.VideoPlayer.Equals("MPV", StringComparison.OrdinalIgnoreCase))
)
if (!string.IsNullOrEmpty(_videoFileName) && oldVideoPlayer != Configuration.Settings.General.VideoPlayer && mediaPlayer.VideoPlayer != null ||
(oldMpvVideoOutput != Configuration.Settings.General.MpvVideoOutput && Configuration.Settings.General.VideoPlayer.Equals("MPV", StringComparison.OrdinalIgnoreCase)))
{
string vfn = _videoFileName;
CloseVideoToolStripMenuItemClick(null, null);
@ -4094,7 +4091,9 @@ namespace Nikse.SubtitleEdit.Forms
SubtitleListview1.SyntaxColorAllLines(_subtitle);
mediaPlayer.LastParagraph = null;
Application.DoEvents();
UiUtil.ShowSubtitle(_subtitle, mediaPlayer);
mediaPlayer.VideoPlayerContainerResize(null, null);
}
private void CheckAndGetNewlyDownloadedMpvDlls()

View File

@ -7758,7 +7758,6 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
sb.AppendLine("<!DOCTYPE html>");
sb.AppendLine("<html>");
sb.AppendLine("<head>");
sb.AppendLine("<title>Subtitle images</title></head>");
sb.AppendLine(" <meta charset=\"UTF - 8\" />");
sb.AppendLine(" <title>Subtitle images</title>");
sb.AppendLine("</head>");