Fix for an unhandled exception. Campbell: please include in 2.60a.
authorJoerg Mueller <nexyon@gmail.com>
Sat, 22 Oct 2011 18:08:26 +0000 (18:08 +0000)
committerJoerg Mueller <nexyon@gmail.com>
Sat, 22 Oct 2011 18:08:26 +0000 (18:08 +0000)
intern/audaspace/intern/AUD_SequencerReader.cpp

index c8af116..23d50c7 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)