From 79fbddb838d64e91d7aaaf1798edc009dd530d0b Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 25 Sep 2020 18:24:29 +0200 Subject: [PATCH] stream: handle out of buffers port If the port was out of buffers and we can't recycle a buffer, return -EPIPE. --- src/pipewire/stream.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pipewire/stream.c b/src/pipewire/stream.c index 9ac17a0b6..077ed2cb9 100644 --- a/src/pipewire/stream.c +++ b/src/pipewire/stream.c @@ -763,7 +763,8 @@ static int impl_node_process_input(void *object) /* pop buffer to recycle */ if ((b = pop_queue(impl, &impl->queued))) { pw_log_trace(NAME" %p: recycle buffer %d", stream, b->id); - } + } else if (io->status == -EPIPE) + return io->status; io->buffer_id = b ? b->id : SPA_ID_INVALID; io->status = SPA_STATUS_NEED_DATA; }