Commit 002beebe authored by Jean-Paul Saman's avatar Jean-Paul Saman Committed by Jean-Baptiste Kempf

alsa: do not leak memory on failure to read frames from pcm device.

(cherry picked from commit c9ed94876c9b6ea3b09c2131db13388ae26e49f1)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent c9c13a50
...@@ -185,6 +185,7 @@ static void *Thread (void *data) ...@@ -185,6 +185,7 @@ static void *Thread (void *data)
pts = mdate (); pts = mdate ();
if (frames < 0) if (frames < 0)
{ {
block_Release (block);
if (frames == -EAGAIN) if (frames == -EAGAIN)
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment