cmMidiFile.c : _cmMidiFileLinearize() now immediately clears mfp->msgVDirtyFl to avoid problems in 'kc'.

This commit is contained in:
kevin 2016-08-03 19:19:24 -04:00
parent b66c936a99
commit 9bc41724d6

View File

@ -536,6 +536,8 @@ void _cmMidiFileLinearize( _cmMidiFile_t* mfp )
if( mfp->msgVDirtyFl == false )
return;
mfp->msgVDirtyFl = false;
// get the total trk msg count
mfp->msgN = 0;
for(trkIdx=0; trkIdx<mfp->trkN; ++trkIdx)
@ -567,7 +569,6 @@ void _cmMidiFileLinearize( _cmMidiFile_t* mfp )
// set the amicro value in each msg
_cmMidiFileSetAbsoluteTime(mfp);
mfp->msgVDirtyFl = false;
}