mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
io: Add current video frame size to position
Add some padding, tweak some padding Remove count in the clock, it's useless For video frames we will want to use metadata to place this on individual buffers.
This commit is contained in:
parent
140203d5a3
commit
d94019ccd2
6 changed files with 23 additions and 15 deletions
|
|
@ -700,7 +700,6 @@ static int update_time(struct state *state, uint64_t nsec, snd_pcm_sframes_t del
|
|||
state->clock->nsec = nsec;
|
||||
state->clock->position += state->duration;
|
||||
state->clock->duration = state->duration;
|
||||
state->clock->count = state->clock->position;
|
||||
state->clock->delay = state->duration * corr;
|
||||
state->clock->rate_diff = corr;
|
||||
state->clock->next_nsec = state->next_time;
|
||||
|
|
|
|||
|
|
@ -695,7 +695,6 @@ static int update_time(struct seq_state *state, uint64_t nsec, bool slave)
|
|||
state->clock->nsec = nsec;
|
||||
state->clock->position += state->duration;
|
||||
state->clock->duration = state->duration;
|
||||
state->clock->count = state->clock->position;
|
||||
state->clock->delay = state->duration * corr;
|
||||
state->clock->rate_diff = corr;
|
||||
state->clock->next_nsec = state->next_time;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue