fallbackswitch: Reset timeout_clock_id on timeout

We shouldn't leave the used clock ID around. Otherwise, we might never
schedule a new timeout from an inactive pad if the active pad doesn't
get a buffer.
This commit is contained in:
Jan Alexander Steffens (heftig) 2022-06-02 11:01:04 +02:00
parent 90ad761d83
commit a5dd92f479
No known key found for this signature in database
GPG key ID: 3B94A80E50A477C7

View file

@ -482,6 +482,10 @@ impl FallbackSwitch {
debug!(CAT, obj: element, "Late timeout callback. Ignoring");
return;
}
// Ensure sink_chain on an inactive pad can schedule another timeout
state.timeout_clock_id = None;
self.handle_timeout(element, &mut state, settings);
}