Try to improve video playing error slightly

This commit is contained in:
Nikolaj Olsson 2020-08-26 06:49:32 +02:00
parent 932680a87b
commit 1ec58dc2d5

View File

@ -24,12 +24,18 @@ namespace Nikse.SubtitleEdit.Forms
sb.AppendLine();
var currentVideoPlayer = Configuration.Settings.General.VideoPlayer;
var isLibMpvInstalled = LibMpvDynamic.IsInstalled;
if (currentVideoPlayer == "MPV" && !isLibMpvInstalled)
{
currentVideoPlayer = "DirectShow";
}
if (currentVideoPlayer == "VLC" && !LibVlcDynamic.IsInstalled)
{
currentVideoPlayer = "DirectShow";
}
if (Configuration.IsRunningOnLinux)
{
sb.AppendLine("Try installing latest version of libmpv and libvlc!");