Skip to content
Snippets Groups Projects
Commit 331c63ad authored by Calvin Walton's avatar Calvin Walton
Browse files

Don't print audio info for corrupt audio files

Fixes a crash: undefined method `[]' for nil:NilClass
that happens when a corrupt audio file is hit.
parent 47c0d69f
No related branches found
No related tags found
No related merge requests found
......@@ -82,6 +82,7 @@ module BigBlueButton
if !info[:audio] || !info[:duration]
BigBlueButton.logger.warn " This audio file is corrupt! It will be removed from the output."
corrupt_audios << audiofile
next
end
BigBlueButton.logger.debug " format: #{info[:format][:format_name]}, codec: #{info[:audio][:codec_name]}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment