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:
Wim Taymans 2019-10-29 14:08:40 +01:00
parent 140203d5a3
commit d94019ccd2
6 changed files with 23 additions and 15 deletions

View file

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

View file

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