mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-10-14 20:02:38 +00:00
node: add a cycle counter to the position
So that we can count the number of times the graph is scheduled.
This commit is contained in:
parent
f366167278
commit
0633be3c12
|
@ -148,7 +148,7 @@ struct spa_io_clock {
|
|||
uint64_t target_duration; /**< Target duration of next cycle */
|
||||
uint32_t target_seq; /**< Seq counter. must be equal at start and
|
||||
* end of read and lower bit must be 0 */
|
||||
uint32_t padding;
|
||||
uint32_t cycle; /**< incremented each time the graph is started */
|
||||
uint64_t xrun; /**< Estimated accumulated xrun duration */
|
||||
};
|
||||
|
||||
|
|
|
@ -1907,11 +1907,12 @@ again:
|
|||
}
|
||||
}
|
||||
|
||||
a->status = PW_NODE_ACTIVATION_TRIGGERED;
|
||||
a->prev_signal_time = a->signal_time;
|
||||
a->signal_time = nsec;
|
||||
node->driver_start = nsec;
|
||||
|
||||
a->status = PW_NODE_ACTIVATION_TRIGGERED;
|
||||
a->signal_time = nsec;
|
||||
|
||||
a->sync_timeout = SPA_MIN(min_timeout, DEFAULT_SYNC_TIMEOUT);
|
||||
|
||||
if (SPA_UNLIKELY(reposition_target != NULL)) {
|
||||
|
@ -1925,6 +1926,7 @@ again:
|
|||
update_position(node, all_ready, nsec);
|
||||
|
||||
pw_impl_node_rt_emit_start(node);
|
||||
a->position.clock.cycle++;
|
||||
}
|
||||
/* this should not happen, driver nodes that are not currently driving
|
||||
* should not emit the ready callback */
|
||||
|
|
Loading…
Reference in a new issue