lib/import/flame_stabilizer.rb in tracksperanto-2.7.0 vs lib/import/flame_stabilizer.rb in tracksperanto-2.8.0
- old
+ new
@@ -61,12 +61,18 @@
end
def extract_channels_from_stream(io)
parser = StabilizerParser.new
parser.logger_proc = method(:report_progress)
- channels = parser.parse(io)
- [channels, channels.map{|c| c.path }]
+ channels = Obuf.new
+ names = []
+ parser.parse(io) do | channel |
+ channels.push(channel)
+ names.push(channel.path)
+ end
+
+ [channels, names]
end
def scavenge_trackers_from_channels(channels, names)
channels.each do |c|
next unless c.name =~ /\/ref\/x/
\ No newline at end of file