New path; review comments addressed.

This commit is contained in:
U-BASIS\dgrove 2019-02-15 02:50:58 -05:00
parent dc6628e787
commit a53fc9333d
2 changed files with 5 additions and 4 deletions

View File

@ -180,6 +180,7 @@ public class MediaPlayerPanel extends JPanel implements MediaFileViewer.MediaVie
private ExtractMedia extractMediaWorker; private ExtractMedia extractMediaWorker;
private final long END_TIME_MARGIN_NS = 50000000; private final long END_TIME_MARGIN_NS = 50000000;
private final int PLAYER_STATUS_UPDATE_INTERVAL_MS = 50;
/** /**
* Creates new form MediaViewVideoPanel * Creates new form MediaViewVideoPanel
@ -307,13 +308,13 @@ public class MediaPlayerPanel extends JPanel implements MediaFileViewer.MediaVie
try { try {
path = file.getUniquePath(); path = file.getUniquePath();
} catch (TskCoreException ex) { } catch (TskCoreException ex) {
logger.log(Level.SEVERE, "Cannot get unique path of video file"); //NON-NLS logger.log(Level.SEVERE, "Cannot get unique path of video file.", ex); //NON-NLS
} }
infoLabel.setText(path); infoLabel.setText(path);
infoLabel.setToolTipText(path); infoLabel.setToolTipText(path);
pauseButton.setEnabled(true); pauseButton.setEnabled(true);
progressSlider.setEnabled(true); progressSlider.setEnabled(true);
timer = new Timer(50, e -> { timer = new Timer(PLAYER_STATUS_UPDATE_INTERVAL_MS, e -> {
if (!progressSlider.getValueIsAdjusting()) { if (!progressSlider.getValueIsAdjusting()) {
long duration; long duration;
long position; long position;

View File

@ -184,10 +184,10 @@
<!-- GStreamer needs special path info to be set --> <!-- GStreamer needs special path info to be set -->
<exec executable="${ai-exe-path}"> <exec executable="${ai-exe-path}">
<arg line="/edit ${aip-path} /NewEnvironment -name GSTREAMER_PATH -value [APPDIR]${gstreamer-relative-path}\bin -install_operation CreateUpdate -behavior Append -system_variable"/> <arg line="/edit ${aip-path} /NewEnvironment -name GSTREAMER_PATH -value [APPDIR]${app.name}\${gstreamer-relative-path}\bin -install_operation CreateUpdate -behavior Append -system_variable"/>
</exec> </exec>
<exec executable="${ai-exe-path}"> <exec executable="${ai-exe-path}">
<arg line="/edit ${aip-path} /NewEnvironment -name GSTREAMER_PATH -value [APPDIR]${gstreamer-relative-path}\lib\gstreamer-1.0 -install_operation CreateUpdate -behavior Append -system_variable"/> <arg line="/edit ${aip-path} /NewEnvironment -name GSTREAMER_PATH -value [APPDIR]${app.name}\${gstreamer-relative-path}\lib\gstreamer-1.0 -install_operation CreateUpdate -behavior Append -system_variable"/>
</exec> </exec>
<exec executable="${ai-exe-path}"> <exec executable="${ai-exe-path}">
<arg line="/edit ${aip-path} /NewEnvironment -name PATH -value %GSTREAMER_PATH% -install_operation CreateUpdate -behavior Append -system_variable"/> <arg line="/edit ${aip-path} /NewEnvironment -name PATH -value %GSTREAMER_PATH% -install_operation CreateUpdate -behavior Append -system_variable"/>