Comment 8 for bug 443370

Revision history for this message
RJ Skerry-Ryan (rryan) wrote :

Reproduced:

1) Delete library
2) Drag file from #5 to the library (not to a deck)
3) divide by zero crash

This is a side-effect of the fix for Bug #753639 -- when the track is just ParseHeader()'d it is not open so no sndfile info is processed which results in a divide-by-zero. I fixed ParseHeader to initialize sndfile in that case and also guarded against future div-by-zero in that spot.