io: add size of current cycle to position

This commit is contained in:
Wim Taymans 2018-10-24 10:27:06 +02:00
parent 0395897856
commit 4aab226047

View file

@ -122,6 +122,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 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)
#define SPA_IO_POSITION_FLAG_VIDEO (1<<1)