GNOME Bugzilla – Bug 740819
audiosrc: Base class may deadlock if source stop producing
Last modified: 2014-12-05 23:28:47 UTC
Created attachment 291676 [details] [review] Check that we are still running before looping on read Whenever a source stop producing buffers (read returns 0) the AudioSrc base class ring buffer loop endup in an infinite loop, and deadlock. This was discovered while stubbing the base class with a read() { return 0; } implementation.
Let's scratch this, it's not really a bug. It's not normal to not return anything in an AudioSrc, it was really a special case of my stub.