mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
New path; review comments addressed.
This commit is contained in:
parent
dc6628e787
commit
a53fc9333d
@ -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;
|
||||||
|
@ -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"/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user