Fix for blender crashing when starting playback with audio without being able to...
authorJoerg Mueller <nexyon@gmail.com>
Mon, 27 Dec 2010 11:32:43 +0000 (11:32 +0000)
committerJoerg Mueller <nexyon@gmail.com>
Mon, 27 Dec 2010 11:32:43 +0000 (11:32 +0000)
intern/audaspace/intern/AUD_SequencerReader.cpp

index 69293205498fbe8b1556996836db004e7b70fd77..5b546ca9d5806f3b4e4b60a19fce443ac5dfede8 100644 (file)
@@ -188,7 +188,16 @@ void AUD_SequencerReader::read(int & length, sample_t* & buffer)
                                        delete strip->reader;
 
                                if(strip->old_sound)
-                                       strip->reader = m_mixer->prepare(strip->old_sound->createReader());
+                               {
+                                       try
+                                       {
+                                               strip->reader = m_mixer->prepare(strip->old_sound->createReader());
+                                       }
+                                       catch(AUD_Exception)
+                                       {
+                                               strip->reader = NULL;
+                                       }
+                               }
                                else
                                        strip->reader = NULL;
                        }