Sha256: afd554aaecbfbd730528b528ca0722ae261fec6fbd82cd13f42c817a9c66c3c3
Contents?: true
Size: 644 Bytes
Versions: 2
Compression:
Stored size: 644 Bytes
Contents
module FLV module Edit module Processor class Save < Base desc "Saves the result to PATH", :param => {:class => String, :name => "PATH"} def process_next_file super ensure if @out @out.close finalpath = @out.path.sub(/\.temp$/, '') FileUtils.mv(@out.path, finalpath) unless finalpath == @out.path end end def on_header(h) @out = FLV::File::open(options[:save] || (h.path+".temp"), "w+b") @out << h end def on_tag(t) @out << t end end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
marcandre-flvedit-0.6.1 | lib/flv/edit/processor/save.rb |
flvedit-0.6.1 | lib/flv/edit/processor/save.rb |