mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 19:21:16 +02:00
reset hasSentFirstFrame to false for double frame on first send
This commit is contained in:
parent
d3028606c5
commit
d7990bf88a
1 changed files with 2 additions and 1 deletions
|
@ -102,9 +102,10 @@ void AudioInjector::restart() {
|
||||||
// reset the current send offset to zero
|
// reset the current send offset to zero
|
||||||
_currentSendOffset = 0;
|
_currentSendOffset = 0;
|
||||||
|
|
||||||
// reset the nextFrame and elapsed timer
|
// reset state to start sending from beginning again
|
||||||
_nextFrame = 0;
|
_nextFrame = 0;
|
||||||
_frameTimer->invalidate();
|
_frameTimer->invalidate();
|
||||||
|
_hasSentFirstFrame = false;
|
||||||
|
|
||||||
// check our state to decide if we need extra handling for the restart request
|
// check our state to decide if we need extra handling for the restart request
|
||||||
if (_state == State::Finished) {
|
if (_state == State::Finished) {
|
||||||
|
|
Loading…
Reference in a new issue