OSDN Git Service

内部的なキャッシュを利用していなかった
authoryukihane <yukihane.feather@gmail.com>
Mon, 12 Sep 2011 03:57:51 +0000 (12:57 +0900)
committeryukihane <yukihane.feather@gmail.com>
Mon, 12 Sep 2011 03:57:51 +0000 (12:57 +0900)
frontend/src/saccubus/util/FfmpegUtil.java

index 4e441ff..916a9c0 100644 (file)
@@ -52,13 +52,8 @@ public final class FfmpegUtil {
             }
             final String res = sb.toString();
             System.out.println(res);
+            execResultCache = res;
             return res;
         }
     }
-
-    public static void main(String[] args) throws IOException {
-        final FfmpegUtil util = new FfmpegUtil(new File("bin/ffmpeg.exe"), new File(
-                "_video/[zb4128320]ラジオCandy boy~かなちゃんのいぬ間に~第2回.mp4"));
-        System.out.println(util.getDuration());
-    }
 }