mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 02:40:08 +00:00
audio_out_session: reset changes to 'pos = tail'
In case a driver is waiting for data, is should only investigate 'pos'. It should not advance the ring in any way until there is data available. issue #4609
This commit is contained in:
parent
907641f6ea
commit
e0c4d5068d
@ -252,8 +252,8 @@ class Audio_out::Stream
|
||||
{
|
||||
if (full())
|
||||
throw Alloc_failed();
|
||||
|
||||
unsigned pos = _tail;
|
||||
|
||||
_tail = (_tail + 1) % QUEUE_SIZE;
|
||||
|
||||
Packet *p = get(pos);
|
||||
@ -267,7 +267,7 @@ class Audio_out::Stream
|
||||
*
|
||||
* This means that allocation will start at current queue position.
|
||||
*/
|
||||
void reset() { _tail = (_pos + 1) % QUEUE_SIZE; }
|
||||
void reset() { _tail = _pos; }
|
||||
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user