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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user