Fix resuming streaming sources. Resolves issue #1362.

This commit is contained in:
Alex Szpakowski
2017-12-30 16:41:54 -04:00
parent a5ca04bb57
commit 55822489cf
+1 -1
View File
@@ -967,7 +967,7 @@ void Source::resumeAtomic()
alSourcePlay(source);
//failed to play or nothing to play
if (alGetError() == AL_INVALID_VALUE || (sourceType == TYPE_STREAM && unusedBuffers.empty()))
if (alGetError() == AL_INVALID_VALUE || (sourceType == TYPE_STREAM && (int) unusedBuffers.size() == buffers))
stop();
}
}