From bf3c45da645b22304c48956825de59f8c0231d8f Mon Sep 17 00:00:00 2001 From: berry120 Date: Fri, 4 Jan 2019 12:21:33 +0000 Subject: [PATCH] Fix for #82 --- .../src/main/java/org/quelea/windows/newsong/VideoButton.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Quelea/src/main/java/org/quelea/windows/newsong/VideoButton.java b/Quelea/src/main/java/org/quelea/windows/newsong/VideoButton.java index e2d76e23e..20ec96eba 100644 --- a/Quelea/src/main/java/org/quelea/windows/newsong/VideoButton.java +++ b/Quelea/src/main/java/org/quelea/windows/newsong/VideoButton.java @@ -20,6 +20,7 @@ import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; +import java.nio.Buffer; import java.nio.ByteBuffer; import java.nio.channels.FileChannel; import java.util.logging.Level; @@ -140,7 +141,7 @@ private static void copyFile(String in, String out) throws Exception { ByteBuffer buff = ByteBuffer.allocate(4096); while (fin.read(buff) != -1 || buff.position() > 0) { - buff.flip(); + ((Buffer) buff).flip(); fout.write(buff); buff.compact(); }