a2dp-sink: don't overwrite duration in clock

We should not modify the duration field in the clock, it is set by
the host and contains the desired quantum.

See #297
This commit is contained in:
Wim Taymans 2020-09-17 10:31:35 +02:00
parent aea9d4fdfe
commit 8b168935ee

View file

@ -687,7 +687,6 @@ again:
if (this->clock) {
this->clock->nsec = now_time;
this->clock->position = this->sample_count;
this->clock->duration = this->write_samples;
this->clock->delay = queued;
this->clock->rate_diff = 1.0f;
this->clock->next_nsec = SPA_TIMESPEC_TO_NSEC(&ts.it_value);