From 87033894c55bf5ff7036bc977c132d3a4ffd8622 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 7 Feb 2019 12:25:33 +0100 Subject: [PATCH] io: add graph version of graph in position io This will make it possible to select the right graph before we start processing. The idea is that graph updates happen in a new version and that the switch will to the new updated graph is done when the period starts. --- spa/include/spa/node/io.h | 1 + 1 file changed, 1 insertion(+) diff --git a/spa/include/spa/node/io.h b/spa/include/spa/node/io.h index 093093dff..7a7f81b23 100644 --- a/spa/include/spa/node/io.h +++ b/spa/include/spa/node/io.h @@ -130,6 +130,7 @@ struct spa_io_position_video { struct spa_io_position { struct spa_io_clock clock; /**< clock position of driver, always valid and * read only */ + uint32_t version; /**< current graph version */ uint32_t size; /**< size of current cycle expressed in clock.rate */ struct spa_fraction rate; /**< overal rate of the graph */ #define SPA_IO_POSITION_FLAG_BAR (1<<0)