Fix for an unhandled exception. Campbell: please include in 2.60a.
[blender.git] / intern / audaspace / intern / AUD_SequencerReader.cpp
index c8af1161530cbe0f9b2d39e5ed2bd9cf67c701ba..23d50c785089d5cb9e6fec834fca1d0538f959a7 100644 (file)
@@ -107,8 +107,14 @@ void AUD_SequencerReader::read(int& length, bool& eos, sample_t* buffer)
 
                        if(result < 0)
                        {
-                               handle = new AUD_SequencerHandle(entry, m_device);
-                               handles.push_front(handle);
+                               try
+                               {
+                                       handle = new AUD_SequencerHandle(entry, m_device);
+                                       handles.push_front(handle);
+                               }
+                               catch(AUD_Exception&)
+                               {
+                               }
                                eit++;
                        }
                        else if(result == 0)