Skip to content

Commit

Permalink
1.66.1.2 ffmpeg n3.2対応
Browse files Browse the repository at this point in the history
  • Loading branch information
orz- committed Nov 5, 2016
1 parent 00519d0 commit b75fa2c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
4 changes: 4 additions & 0 deletions frontend/src/saccubus/FFmpeg.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ public int exec(int abortedCode, CallbackInterface callback, Logger log) {
// process = Runtime.getRuntime().exec(getCmd());
pb = new ProcessBuilder(getCmdArrayList());
pb.redirectErrorStream(true);
// add java.class.path to env PATH
pb.environment().put("PATH", Saccubus.pathenv);
process = pb.start();
ebr = new BufferedReader(new InputStreamReader(process.getInputStream(), "UTF-8"));
String e;
Expand Down Expand Up @@ -206,6 +208,8 @@ public int exec(Callback callback, Logger log){
// process = Runtime.getRuntime().exec(getCmd());
pb = new ProcessBuilder(getCmdArrayList());
pb.redirectErrorStream(true);
// add java.class.path to env PATH
pb.environment().put("PATH", Saccubus.pathenv);
process = pb.start();
ebr = new BufferedReader(new InputStreamReader(process.getInputStream()));
String e;
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/saccubus/MainFrame_AboutBox.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public class MainFrame_AboutBox extends JDialog implements ActionListener {

// String version = "ver1.22r(2008/04/27)";

public static final String rev = "1.66.1.1";
private static final String modefied = " (2016/10/11)";
public static final String rev = "1.66.1.2";
private static final String modefied = " (2016/11/06)";

String productHTML =
"<html>" +
Expand Down
1 change: 1 addition & 0 deletions frontend/src/saccubus/Prompt.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public class Prompt {
private static Logger log;

public static void main(String[] args){
Saccubus.initEnv();
int code = 0;
do {
code = main1(args.clone());
Expand Down
13 changes: 13 additions & 0 deletions frontend/src/saccubus/Saccubus.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package saccubus;

import java.io.File;

import javax.swing.SwingUtilities;
import javax.swing.UIManager;

Expand All @@ -24,6 +26,7 @@
* @version 1.0
*/
public class Saccubus {
public static String pathenv;
boolean packFrame = false;

/**
Expand All @@ -48,6 +51,15 @@ public Saccubus() {
// メインフレーム表示
frame.setVisible(true);
}
public static void initEnv(){
// add java.class.path to env PATH, pathenv
String classPath = System.getProperty("java.class.path");
pathenv = System.getProperty("java.library.path"); // getenv("PATH")
if(!pathenv.contains(classPath)){
pathenv = classPath + File.pathSeparator + pathenv;
System.setProperty("java.library.path",pathenv);
}
}

/**
* アプリケーションエントリポイント。
Expand All @@ -56,6 +68,7 @@ public Saccubus() {
* String[]
*/
public static void main(String[] args) {
initEnv();
if (args.length > 0) {
Prompt.main(args);
return;
Expand Down

1 comment on commit b75fa2c

@orz-
Copy link
Contributor Author

@orz- orz- commented on b75fa2c Jul 17, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue #72 関連

Please sign in to comment.