lib/bulldog/attachment/video.rb in bulldog-0.0.11 vs lib/bulldog/attachment/video.rb in bulldog-0.0.12

- old
+ new

@@ -28,12 +28,11 @@ def duration(style_name) # TODO: support styles with different durations if stream.missing? 0 else - examine - @original_duration + from_examination :original_duration end end # # Return the video tracks of the named style, as an array of @@ -48,10 +47,10 @@ style_name ||= reflection.default_style if style_name == :original if stream.missing? [VideoTrack.new(:dimensions => [2, 2])] else - examine + examine unless @original_video_tracks if @original_video_tracks.empty? @original_video_tracks << VideoTrack.new(:dimensions => [2, 2]) end @original_video_tracks end