From ef026ffdb61aec696780c6ecf685962db31c67b9 Mon Sep 17 00:00:00 2001 From: Misaki Kasumi Date: Tue, 28 May 2024 13:36:45 +0800 Subject: [PATCH] Revert "ao_pipewire: add EOF handling" This reverts commit 3fc8929caf6ba4b89c849a8fcde76841f26d8584. --- audio/out/ao_pipewire.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/audio/out/ao_pipewire.c b/audio/out/ao_pipewire.c index 7b094b3f65..a04ae9d3d0 100644 --- a/audio/out/ao_pipewire.c +++ b/audio/out/ao_pipewire.c @@ -206,8 +206,7 @@ static void on_process(void *userdata) #endif end_time -= pw_stream_get_nsec(p->stream) - time.now; - bool eof; - int samples = ao_read_data(ao, data, nframes, end_time, &eof, false, false); + int samples = ao_read_data(ao, data, nframes, end_time, NULL, false, false); b->size = samples; for (int i = 0; i < buf->n_datas; i++) { @@ -218,11 +217,6 @@ static void on_process(void *userdata) pw_stream_queue_buffer(p->stream, b); - if (eof) { - pw_stream_flush(p->stream, true); - ao_stop_streaming(ao); - } - MP_TRACE(ao, "queued %d of %d samples\n", samples, nframes); }