From 530caf35dbab95ccd881e065b4dfe3d6d8325e48 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 18 Oct 2017 10:04:31 +0200 Subject: [PATCH] *testsrc: async == live for now --- spa/plugins/audiotestsrc/audiotestsrc.c | 2 +- spa/plugins/videotestsrc/videotestsrc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spa/plugins/audiotestsrc/audiotestsrc.c b/spa/plugins/audiotestsrc/audiotestsrc.c index 48f16fe84..d4ea29525 100644 --- a/spa/plugins/audiotestsrc/audiotestsrc.c +++ b/spa/plugins/audiotestsrc/audiotestsrc.c @@ -841,7 +841,7 @@ static int impl_node_process_output(struct spa_node *node) this->io->buffer_id = SPA_ID_INVALID; } - if (!this->async && (io->status == SPA_RESULT_NEED_BUFFER)) + if (!this->props.live && (io->status == SPA_RESULT_NEED_BUFFER)) return make_buffer(this); else return SPA_RESULT_OK; diff --git a/spa/plugins/videotestsrc/videotestsrc.c b/spa/plugins/videotestsrc/videotestsrc.c index 23000db9e..51668fe21 100644 --- a/spa/plugins/videotestsrc/videotestsrc.c +++ b/spa/plugins/videotestsrc/videotestsrc.c @@ -785,7 +785,7 @@ static int impl_node_process_output(struct spa_node *node) this->io->buffer_id = SPA_ID_INVALID; } - if (!this->async && (io->status == SPA_RESULT_NEED_BUFFER)) + if (!this->props.live && (io->status == SPA_RESULT_NEED_BUFFER)) return make_buffer(this); else return SPA_RESULT_OK;