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;