diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-08-26 07:41:36 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-08-26 07:41:36 +0000 |
commit | 33ad8374da5d782d174c70a9023d181378151040 (patch) | |
tree | 11aae939704696a65718322a51b32692edb977bd /lib/dtas | |
parent | 5572b85c7f42f5eb699a372b0b0d1ed3e2c26a69 (diff) | |
download | dtas-33ad8374da5d782d174c70a9023d181378151040.tar.gz |
Sometimes we'll enqueue the wrong file and avconv won't be able to handle it.
Diffstat (limited to 'lib/dtas')
-rw-r--r-- | lib/dtas/player.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dtas/player.rb b/lib/dtas/player.rb index 5cc95c7..d865239 100644 --- a/lib/dtas/player.rb +++ b/lib/dtas/player.rb @@ -344,10 +344,10 @@ class DTAS::Player # :nodoc: case source_spec when String - @current = try_file(source_spec) + @current = try_file(source_spec) or return echo(%W(file #{@current.infile})) when Array - @current = try_file(*source_spec) + @current = try_file(*source_spec) or return echo(%W(file #{@current.infile} #{@current.offset_samples}s)) else @current = DTAS::Source::Cmd.new(source_spec["command"]) |