After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 740819 - audiosrc: Base class may deadlock if source stop producing
audiosrc: Base class may deadlock if source stop producing
Status: RESOLVED WONTFIX
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal minor
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-11-27 18:59 UTC by Nicolas Dufresne (ndufresne)
Modified: 2014-12-05 23:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Check that we are still running before looping on read (1.00 KB, patch)
2014-11-27 18:59 UTC, Nicolas Dufresne (ndufresne)
none Details | Review

Description Nicolas Dufresne (ndufresne) 2014-11-27 18:59:05 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.
Comment 1 Nicolas Dufresne (ndufresne) 2014-12-05 23:28:47 UTC
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.