Revert "ao_pipewire: add EOF handling"

This reverts commit 3fc8929caf.
This commit is contained in:
Misaki Kasumi 2024-05-28 13:36:45 +08:00 committed by Dudemanguy
parent 2938ed5942
commit ef026ffdb6
1 changed files with 1 additions and 7 deletions

View File

@ -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);
}