lib/mxfinfo.rb in mxfinfo-0.0.7 vs lib/mxfinfo.rb in mxfinfo-0.1.0
- old
+ new
@@ -1,11 +1,18 @@
require 'mxfinfo.so'
require 'mxfinfo/version.rb'
module MXFInfo
def self.scan(path)
+ io = IO.new(2)
+ stderr = io.dup
+ io.reopen(IO::NULL)
InfoObject.new path
+ rescue => e
+ io.reopen stderr
+ stderr.close
+ raise e
end
class InfoObject
alias_method :videotracks, :num_video_tracks
alias_method :v_tracks, :num_video_tracks
@@ -18,9 +25,10 @@
alias_method :t_number, :track_number
alias_method :tracknumber, :track_number
alias_method :channelcount, :channel_count
alias_method :c_count, :channel_count
alias_method :file_package_uid, :file_source_package_uid
+ alias_method :clip_edit_rate, :project_edit_rate
def render_file?
physical_package_name == "Precompute Source Mob"
end