Merge pull request #20 from gugat/issue1106

Solve issue 1106 . Return silence with lenght of the recording when there is not audio file.
This commit is contained in:
Markos Calderon 2012-01-06 09:29:57 -08:00
commit 4e6bdabc37

View File

@ -131,7 +131,9 @@ module BigBlueButton
unique_events.concat(audio_paddings)
return unique_events.sort! {|a,b| a.start_event_timestamp.to_i <=> b.start_event_timestamp.to_i}
else
return nil
first_event = BigBlueButton::Events.first_event_timestamp(events_xml).to_i
last_event = BigBlueButton::Events.last_event_timestamp(events_xml).to_i
return [create_gap_audio_event(last_event - first_event + 1, last_event, first_event)]
end
end