mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 00:16:16 +00:00
Merge pull request #2036 from millmanorama/fix-gstreamer-buffering
fix gstreamer buffering
This commit is contained in:
commit
0c9b099313
@ -18,6 +18,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.sleuthkit.autopsy.corecomponents;
|
package org.sleuthkit.autopsy.corecomponents;
|
||||||
|
|
||||||
|
import com.google.common.io.Files;
|
||||||
import java.awt.Dimension;
|
import java.awt.Dimension;
|
||||||
import java.awt.Image;
|
import java.awt.Image;
|
||||||
import java.awt.image.BufferedImage;
|
import java.awt.image.BufferedImage;
|
||||||
@ -680,6 +681,7 @@ public class GstVideoPanel extends MediaViewVideoPanel {
|
|||||||
progressLabel.setText(NbBundle.getMessage(this.getClass(), "GstVideoPanel.progress.buffering"));
|
progressLabel.setText(NbBundle.getMessage(this.getClass(), "GstVideoPanel.progress.buffering"));
|
||||||
progress.start(100);
|
progress.start(100);
|
||||||
try {
|
try {
|
||||||
|
Files.createParentDirs(tempFile);
|
||||||
return ContentUtils.writeToFile(sourceFile, tempFile, progress, this, true);
|
return ContentUtils.writeToFile(sourceFile, tempFile, progress, this, true);
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
logger.log(Level.WARNING, "Error buffering file", ex); //NON-NLS
|
logger.log(Level.WARNING, "Error buffering file", ex); //NON-NLS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user