Fixed buffer underrun handling in MixSDL (bug #211)

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@919 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
gewlitys
2003-04-21 01:18:12 +00:00
parent c5ca80a329
commit 1d68ed2cd5
2 changed files with 5 additions and 0 deletions
@@ -672,7 +672,11 @@ mixSDL_SourcePlay (mixSDL_Object srcobj)
else /* should make the source active */
{
if (src->state < MIX_PLAYING)
{
if (src->firstqueued && !src->nextqueued)
mixSDL_SourceRewind_internal (src);
mixSDL_SourceActivate (src);
}
src->state = MIX_PLAYING;
}