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.
This commit is contained in:
Wim Taymans 2019-02-07 12:25:33 +01:00
parent 8a9c1129a2
commit 87033894c5

View file

@ -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)