about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/dtas/splitfx.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/dtas/splitfx.rb b/lib/dtas/splitfx.rb
index 374d7ff..c54c1a4 100644
--- a/lib/dtas/splitfx.rb
+++ b/lib/dtas/splitfx.rb
@@ -159,8 +159,9 @@ class DTAS::SplitFX # :nodoc:
   end
 
   def generic_target(target = "flac")
-    fmt = { "type" => target }
-    { "command" => CMD, "format" => DTAS::Format.load(fmt) }
+    outfmt = @infmt.dup
+    outfmt.type = target
+    { "command" => CMD, "format" => outfmt }
   end
 
   def spawn(target, t, opts)