From 90968bbb409a340645a3fa9e06a3c865b057d5c7 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 21 Feb 2020 16:24:41 +0100 Subject: [PATCH] testsrc: implement suspend --- spa/plugins/audiotestsrc/audiotestsrc.c | 1 + spa/plugins/videotestsrc/videotestsrc.c | 1 + 2 files changed, 2 insertions(+) diff --git a/spa/plugins/audiotestsrc/audiotestsrc.c b/spa/plugins/audiotestsrc/audiotestsrc.c index b42aad38b..b2d55eba4 100644 --- a/spa/plugins/audiotestsrc/audiotestsrc.c +++ b/spa/plugins/audiotestsrc/audiotestsrc.c @@ -426,6 +426,7 @@ static int impl_node_send_command(void *object, const struct spa_command *comman set_timer(this, true); break; } + case SPA_NODE_COMMAND_Suspend: case SPA_NODE_COMMAND_Pause: if (!port->have_format) return -EIO; diff --git a/spa/plugins/videotestsrc/videotestsrc.c b/spa/plugins/videotestsrc/videotestsrc.c index 517de2b66..4fae4ecb7 100644 --- a/spa/plugins/videotestsrc/videotestsrc.c +++ b/spa/plugins/videotestsrc/videotestsrc.c @@ -377,6 +377,7 @@ static int impl_node_send_command(void *object, const struct spa_command *comman set_timer(this, true); break; } + case SPA_NODE_COMMAND_Suspend: case SPA_NODE_COMMAND_Pause: if (!port->have_format) return -EIO;