mirror of
https://github.com/ZDoom/ZMusic.git
synced 2025-01-30 04:10:56 +00:00
- fixed: StreamSong did not flag itself as stopped when non-looping playback ended.
This commit is contained in:
parent
7f63ad8707
commit
645a8506e2
1 changed files with 1 additions and 0 deletions
|
@ -160,6 +160,7 @@ bool StreamSong::ServiceStream (void *buff, int len)
|
||||||
bool written = m_Source->GetData(buff, len);
|
bool written = m_Source->GetData(buff, len);
|
||||||
if (!written)
|
if (!written)
|
||||||
{
|
{
|
||||||
|
m_Status = STATE_Stopped;
|
||||||
memset((char*)buff, 0, len);
|
memset((char*)buff, 0, len);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue