Thanks, I'll look into that. A possible reason is that snd_playing is called with a zero handle, but normally the function should then return and not crash.