lib/mediainfo/tracks.rb in mediainfo-1.1.1 vs lib/mediainfo/tracks.rb in mediainfo-1.1.2

- old
+ new

@@ -10,10 +10,10 @@ attr_reader :xml, :track_types, :attribute_standardization_rules def initialize(input = nil) if input && input.include?('<?xml') - @xml = input + @xml = input.gsub(/(\n|.)*(\<\?xml)/,'<?xml') @track_types = [] @attribute_standardization_rules = YAML.load_file("#{Gem::Specification.find_by_name('mediainfo').gem_dir}/lib/attribute_standardization_rules.yml") # Populate Streams case MediaInfo.xml_parser when 'nokogiri'