From 70b81da26a525486c288176e5764c875c752d0b8 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 25 Jan 2016 01:03:18 +0000 Subject: mlib: support all formats of player Almost, we will need to get a list of all suffixes supported by ffprobe or avprobe. This could prove tricky.. --- lib/dtas/source/av_ff_common.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/dtas/source/av_ff_common.rb') diff --git a/lib/dtas/source/av_ff_common.rb b/lib/dtas/source/av_ff_common.rb index 0fb3ace..58d9f54 100644 --- a/lib/dtas/source/av_ff_common.rb +++ b/lib/dtas/source/av_ff_common.rb @@ -19,6 +19,7 @@ module DTAS::Source::AvFfCommon # :nodoc: attr_reader :precision # always 32 attr_reader :format + attr_reader :duration def try(infile, offset = nil, trim = nil) rv = source_file_dup(infile, offset, trim) -- cgit v1.2.3-24-ge0c7