GNOME Bugzilla – Bug 695832
audio: a print causes a floating point exception
Last modified: 2013-03-15 09:08:42 UTC
Created attachment 238853 [details] [review] only print when not dividing by 0 division by 0
Please switch this to (bpf != 0) ? (spec->segsize / bpf) : -1 form, rather than making the debug message disappear. Otherwise, looks good.
commit 0fa50b44f075fa0a11fb9db4656ff6cae7f104a2 Author: Marc Leeman <marc.leeman@gmail.com> Date: Thu Mar 14 10:58:11 2013 +0100 audioringbuffer: avoid division by 0 when outputting debug info https://bugzilla.gnome.org/show_bug.cgi?id=695832
Comment on attachment 238853 [details] [review] only print when not dividing by 0 Committed with changes as suggested.