Modify EncodingTask: add codecid to default filename
authorMaximilian Quellmalz <maximilian.quellmalz@mailbox.tu-dresden.de>
Wed, 10 Dec 2014 13:38:28 +0000 (14:38 +0100)
committerMaximilian Quellmalz <maximilian.quellmalz@mailbox.tu-dresden.de>
Wed, 10 Dec 2014 13:38:28 +0000 (14:38 +0100)
Splitter-ng/src/splitterng/EncodingTask.java

index 69a9680..945a6b9 100644 (file)
@@ -258,7 +258,11 @@ public class EncodingTask extends CodingTask {
                        fileOutputStreamMap = new HashMap<Integer, OutputStream>();
                        for (int i = 0; i < fragments.length; i++) {
                                Path newfile = this.outputDir.resolve(filePath.getFileName()
-                                               + "#" + hashCode() + "#" + i);
+                                               + "#"
+                                               + getMetadata("codecid")
+                                               + "#" 
+                                               + hashCode()
+                                               + "#" + i);
                                // System.out.println("Erzeuge Fragmentdatei: "+newfile);
                                fragmentPathsMap.put(i, Files.createFile(newfile));
                                fileOutputStreamMap.put(i, Files.newOutputStream(newfile));