Fix crash in PlayStream when whole file is prebuffered and its not
speech (bug #259) git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@966 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
Changes towards version 0.3:
|
||||
- Fix crash in PlayStream when whole file is prebuffered and its not
|
||||
speech (bug #259) -Mika
|
||||
- Fix endian problem in colormap transform code (bug #137) -Mika
|
||||
- Fix minor glitch in planet coarse scan (bug #238), from chmmravatar
|
||||
- Wav loader is now endian safe (bug #165) -Mika
|
||||
|
||||
@@ -80,7 +80,8 @@ PlayStream (TFB_SoundSample *sample, uint32 source, bool looping, bool scope, bo
|
||||
|
||||
if (sample->decoder->error)
|
||||
{
|
||||
if (sample->decoder->error == SOUNDDECODER_EOF && sample->read_chain_ptr->next)
|
||||
if (sample->decoder->error == SOUNDDECODER_EOF &&
|
||||
sample->read_chain_ptr && sample->read_chain_ptr->next)
|
||||
{
|
||||
sample->read_chain_ptr = sample->read_chain_ptr->next;
|
||||
sample->decoder = sample->read_chain_ptr->decoder;
|
||||
|
||||
Reference in New Issue
Block a user