mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[client] audio: tell the audiodev to stop on the last packet, not after
This commit is contained in:
parent
73dc08e5f9
commit
4fadf3a130
@ -140,7 +140,8 @@ static int playbackPullFrames(uint8_t ** data, int frames)
|
||||
else
|
||||
frames = 0;
|
||||
|
||||
if (audio.playback.state == STREAM_STATE_DRAIN && frames == 0)
|
||||
if (audio.playback.state == STREAM_STATE_DRAIN &&
|
||||
ringbuffer_getCount(audio.playback.buffer) == 0)
|
||||
playbackStopNL();
|
||||
|
||||
LG_UNLOCK(audio.playback.lock);
|
||||
|
Loading…
Reference in New Issue
Block a user