Commit ecbd625c4b556855a6013825114bb16b374c3706

Ryan C. Gordon 2016-08-03T01:53:59

arts: Patched to (maybe) compile.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/src/audio/arts/SDL_artsaudio.c b/src/audio/arts/SDL_artsaudio.c
index ce8c9d8..1ab7c2d 100644
--- a/src/audio/arts/SDL_artsaudio.c
+++ b/src/audio/arts/SDL_artsaudio.c
@@ -217,13 +217,13 @@ ARTS_FlushCapture(_THIS)
     arts_stream_t stream = this->hidden->stream;
     int remain = SDL_NAME(arts_stream_get)(stream, ARTS_P_BUFFER_SPACE);
     Uint8 buf[512];
-    while (space > 0) {
+    while (remain > 0) {
         const int len = SDL_min(sizeof (buf), remain);
         const int br = SDL_NAME(arts_read)(stream, buf, len);
         if (br <= 0) {
             return;  /* oh well. */
         }
-        space -= br;
+        remain -= br;
     }
 }