From 9bc41724d6cc501bbb70bd1a0d23b239003ac3df Mon Sep 17 00:00:00 2001 From: kevin Date: Wed, 3 Aug 2016 19:19:24 -0400 Subject: [PATCH] cmMidiFile.c : _cmMidiFileLinearize() now immediately clears mfp->msgVDirtyFl to avoid problems in 'kc'. --- cmMidiFile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmMidiFile.c b/cmMidiFile.c index 7297a45..0071468 100644 --- a/cmMidiFile.c +++ b/cmMidiFile.c @@ -535,6 +535,8 @@ void _cmMidiFileLinearize( _cmMidiFile_t* mfp ) if( mfp->msgVDirtyFl == false ) return; + + mfp->msgVDirtyFl = false; // get the total trk msg count mfp->msgN = 0; @@ -567,7 +569,6 @@ void _cmMidiFileLinearize( _cmMidiFile_t* mfp ) // set the amicro value in each msg _cmMidiFileSetAbsoluteTime(mfp); - mfp->msgVDirtyFl = false; }