From 3c9eb135001b565f5d6f577866f5c7c4d6c4df19 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 22 Jan 2018 10:35:19 +0100 Subject: [PATCH] video-src: set buffer size --- src/examples/video-src.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/examples/video-src.c b/src/examples/video-src.c index 1e5131c48..c351eaf40 100644 --- a/src/examples/video-src.c +++ b/src/examples/video-src.c @@ -132,6 +132,8 @@ static void on_timeout(void *userdata, uint64_t expirations) if (map) munmap(map, buf->datas[0].maxsize + buf->datas[0].mapoffset); + buf->datas[0].chunk->size = buf->datas[0].maxsize; + pw_stream_send_buffer(data->stream, id); }