From 27fc247da5f55b9869be7d4039ccb62e9d700b2c Mon Sep 17 00:00:00 2001 From: Jeff Wallace Date: Mon, 21 Oct 2013 10:28:35 -0400 Subject: [PATCH] Fixed issue with multiple instances of data result panels. --- .../corecomponents/MediaViewVideoPanel.java | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/corecomponents/MediaViewVideoPanel.java b/Core/src/org/sleuthkit/autopsy/corecomponents/MediaViewVideoPanel.java index 9275ef7c1d..343b7fa672 100644 --- a/Core/src/org/sleuthkit/autopsy/corecomponents/MediaViewVideoPanel.java +++ b/Core/src/org/sleuthkit/autopsy/corecomponents/MediaViewVideoPanel.java @@ -39,12 +39,6 @@ public abstract class MediaViewVideoPanel extends JPanel implements FrameCapture // 32 bit architectures private static final String[] ARCH32 = new String[]{"x86"}; - // A Gstreamer implementation of MediaViewVideoPanel - private static GstVideoPanel gstVideoPanel = null; - - // A JavaFX implmentation of MediaViewVideoPanel - private static FXVideoPanel fxVideoPanel = null; - /** * Factory Method to create a MediaViewVideoPanel. * @@ -78,10 +72,7 @@ public abstract class MediaViewVideoPanel extends JPanel implements FrameCapture * @return a GstVideoPanel */ private static MediaViewVideoPanel getGstImpl() { - if (gstVideoPanel == null) { - gstVideoPanel = new GstVideoPanel(); - } - return gstVideoPanel; + return new GstVideoPanel(); } /** @@ -90,10 +81,7 @@ public abstract class MediaViewVideoPanel extends JPanel implements FrameCapture * @return a FXVideoPanel */ private static MediaViewVideoPanel getFXImpl() { - if (fxVideoPanel == null) { - fxVideoPanel = new FXVideoPanel(); - } - return fxVideoPanel; + return new FXVideoPanel(); } /**