audiosrc: Leave read loop if no longer running
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 27 Nov 2014 18:52:52 +0000 (13:52 -0500)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 3 Nov 2016 17:19:12 +0000 (13:19 -0400)
commiteddb5437192c088c3ba62229e2a9a4cd3aa08a7a
tree086cd6b77598f1112c2d3d241ede1872931cc8e5
parent3cc9b2c4905c7ececa5f52d35fdc8b4c65fe641c
audiosrc: Leave read loop if no longer running

In the case a src stops providing data (read calls returns 0). The audio
src thread will never leave. Instead, check the condition and leave the
loop.
gst-libs/gst/audio/gstaudiosrc.c