mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 20:31:29 +02:00
fixed setToStarved() behavior of InboundAudioStream
This commit is contained in:
parent
656131b7ee
commit
5b0662f1d0
1 changed files with 3 additions and 2 deletions
|
@ -166,8 +166,9 @@ void InboundAudioStream::framesAvailableChanged() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void InboundAudioStream::setToStarved() {
|
void InboundAudioStream::setToStarved() {
|
||||||
if (!_isStarved && _ringBuffer.framesAvailable() < _desiredJitterBufferFrames) {
|
starved();
|
||||||
starved();
|
if (_ringBuffer.framesAvailable() >= _desiredJitterBufferFrames) {
|
||||||
|
_isStarved = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue