From 7fd0e8cda554afebe7c0f5906c0f6e1a7db6ebea Mon Sep 17 00:00:00 2001 From: columbarius Date: Sun, 24 Sep 2023 15:00:23 +0200 Subject: [PATCH] videoconvert: disable latency recalculation --- spa/plugins/videoconvert/videoadapter.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spa/plugins/videoconvert/videoadapter.c b/spa/plugins/videoconvert/videoadapter.c index 486d57a53..872c9e308 100644 --- a/spa/plugins/videoconvert/videoadapter.c +++ b/spa/plugins/videoconvert/videoadapter.c @@ -1077,6 +1077,7 @@ static void follower_info(void *data, const struct spa_node_info *info) } +/* static int recalc_latency(struct impl *this, enum spa_direction direction, uint32_t port_id) { struct spa_pod_builder b = { 0 }; @@ -1111,6 +1112,7 @@ static int recalc_latency(struct impl *this, enum spa_direction direction, uint3 return 0; } +*/ static void follower_port_info(void *data, enum spa_direction direction, uint32_t port_id, @@ -1166,7 +1168,8 @@ static void follower_port_info(void *data, continue; if (idx == IDX_Latency) { - res = recalc_latency(this, direction, port_id); + // res = recalc_latency(this, direction, port_id); + res = 0; spa_log_debug(this->log, "latency: %d (%s)", res, spa_strerror(res)); }