#776 FFDec stop working at all after setting "number of threads" to 0 fixed

This commit is contained in:
honfika@gmail.com
2015-01-21 12:59:07 +01:00
parent 4afa3c4ac1
commit dfd3166bb9
5 changed files with 14 additions and 5 deletions

View File

@@ -690,6 +690,15 @@ public class Configuration {
return ret;
}
public static int getParallelThreadCount() {
int count = parallelThreadCount.get();
if (count < 2) {
count = 2;
}
return count;
}
public static File getFlashLibPath() {
String home = getFFDecHome();
File libsdir = new File(home + "flashlib");