bluez5: media-sink: Drop a redundant ASHA state variable

This commit is contained in:
Arun Raghavan 2025-04-25 13:03:52 +05:30 committed by Wim Taymans
parent ce8abfc5cc
commit b02b69b271

View file

@ -118,7 +118,6 @@ struct spa_bt_asha {
uint64_t ref_t0;
uint64_t skip_frames;
uint64_t prev_time;
uint64_t next_time;
unsigned int flush_pending:1;
@ -1366,8 +1365,7 @@ static void media_asha_flush_timeout(struct spa_source *source)
spa_system_clock_gettime(this->data_system, CLOCK_MONOTONIC, &ts);
now = SPA_TIMESPEC_TO_NSEC(&ts);
asha->next_time = (uint64_t)(asha->prev_time + ASHA_CONN_INTERVAL * port->ratectl.corr);
asha->prev_time = asha->next_time;
asha->next_time += (uint64_t)(ASHA_CONN_INTERVAL * port->ratectl.corr);
if (asha->poll_pending) {
/*