So I walked through the code with the ruby debugger and i think I
figured out what was causing the error.

The accessor was for :meta_data, and the code assigned to @metadata.
Additionally the code that was reading the metadata attribute was
expecting a hash (line 138 of stream.rb), but @meta_data (the
corrected instance variable) contained an object with instance
variables set instead of a hash.

so I replaced:

@metadata = meta_data_stream.read__AMF_data

with

@meta_data = {}
 md = meta_data_stream.read__AMF_data
 md.instance_variables.each do |var|
     var.gsub! "@", ""
     @meta_data[var] = md.instance_variable_get(var)
 end

Emmett
_______________________________________________
Flvtool2-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/flvtool2-users

Reply via email to