This reverts commit 3fc8929caf6ba4b89c849a8fcde76841f26d8584.
Unified · Split
| @@ -206,8 +206,7 @@ static void on_process(void *userdata) · 205 unmodified lines | ||
| 206 | 206 | #endif |
| 207 | 207 | end_time -= pw_stream_get_nsec(p->stream) - time.now; |
| 208 | 208 | |
| 209 | − bool eof; | |
| 210 | − int samples = ao_read_data(ao, data, nframes, end_time, &eof, false, false); | |
| 209 | + int samples = ao_read_data(ao, data, nframes, end_time, NULL, false, false); | |
| 211 | 210 | b->size = samples; |
| 212 | 211 | |
| 213 | 212 | for (int i = 0; i < buf->n_datas; i++) { |
| @@ -218,11 +217,6 @@ static void on_process(void *userdata) · 4 unmodified lines | ||
| 218 | 217 | |
| 219 | 218 | pw_stream_queue_buffer(p->stream, b); |
| 220 | 219 | |
| 221 | − if (eof) { | |
| 222 | − pw_stream_flush(p->stream, true); | |
| 223 | − ao_stop_streaming(ao); | |
| 224 | − } | |
| 225 | − | |
| 226 | 220 | MP_TRACE(ao, "queued %d of %d samples\n", samples, nframes); |
| 227 | 221 | } |
| 228 | 222 | |