Browse Source

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

master
kevin 8 years ago
parent
commit
9bc41724d6
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      cmMidiFile.c

+ 2
- 1
cmMidiFile.c View File

@@ -535,6 +535,8 @@ void _cmMidiFileLinearize( _cmMidiFile_t* mfp )
535 535
 
536 536
   if( mfp->msgVDirtyFl == false )
537 537
     return;
538
+
539
+  mfp->msgVDirtyFl = false;
538 540
   
539 541
   // get the total trk msg count
540 542
   mfp->msgN = 0;
@@ -567,7 +569,6 @@ void _cmMidiFileLinearize( _cmMidiFile_t* mfp )
567 569
   // set the amicro value in each msg
568 570
   _cmMidiFileSetAbsoluteTime(mfp);
569 571
 
570
-  mfp->msgVDirtyFl = false;
571 572
   
572 573
 }
573 574
 

Loading…
Cancel
Save