Read VLC path from registry

This commit is contained in:
Jindra Petřík
2022-12-05 20:14:10 +01:00
parent 099b92f19f
commit 3003cc3f24
12 changed files with 77 additions and 60 deletions

View File

@@ -198,6 +198,7 @@ import com.jpexs.helpers.Path;
import com.jpexs.helpers.ProgressListener;
import com.jpexs.helpers.Reference;
import com.jpexs.helpers.SerializableImage;
import com.jpexs.video.SimpleMediaPlayer;
import java.awt.BorderLayout;
import java.awt.CardLayout;
import java.awt.Color;
@@ -4610,7 +4611,7 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
}
boolean internalViewer = !isAdobeFlashPlayerEnabled();
boolean isVideoButNotDrawable = (treeItem instanceof DefineVideoStreamTag) && (!Configuration.vlcPlayerLocation.hasValue() || !new File(Configuration.vlcPlayerLocation.get()).exists());
boolean isVideoButNotDrawable = (treeItem instanceof DefineVideoStreamTag) && (!SimpleMediaPlayer.isAvailable());
if (treeItem instanceof SWF) {
SWF swf = (SWF) treeItem;