From 2494a7aca9cf62110814ae527adc944e67a824c1 Mon Sep 17 00:00:00 2001 From: martynshaw99 Date: Mon, 29 Aug 2011 23:01:28 +0000 Subject: [PATCH] Prevent a crash when mix-and-rendering an empty wave --- src/Mix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mix.cpp b/src/Mix.cpp index a2618fa2a..7b8b2ea27 100644 --- a/src/Mix.cpp +++ b/src/Mix.cpp @@ -83,7 +83,7 @@ bool MixAndRender(TrackList *tracks, TrackFactory *trackFactory, * need to work out for ourselves when to start and stop rendering. */ - double mixStartTime; /* start time of first track to start */ + double mixStartTime = 0.0; /* start time of first track to start */ bool gotstart = false; // flag indicates we have found a start time double mixEndTime = 0.0; /* end time of last track to end */ double tstart, tend; // start and end times for one track.