Update of /cvsroot/audacity/audacity-src/src
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv20763

Modified Files:
        Mix.cpp 
Log Message:
Prevent crash when mixing multiple tracks and mixing starts past end of a short 
track

Index: Mix.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Mix.cpp,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- Mix.cpp     27 May 2007 21:58:29 -0000      1.64
+++ Mix.cpp     27 Jul 2007 04:42:55 -0000      1.65
@@ -354,6 +354,11 @@
             getLen = last - *pos;
          }
 
+         // Nothing to do if past end of track
+         if (getLen <= 0) {
+            break;
+         }
+
          track->Get((samplePtr)&queue[*queueLen], floatSample,
                     *pos, getLen);
 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to