Timeline: Order region finalization to ensure correct logging.

This commit is contained in:
Jonathan Moore Liles 2013-09-20 17:39:19 -07:00
parent 97573f0299
commit 2ea366a409
1 changed files with 3 additions and 2 deletions

View File

@ -355,13 +355,14 @@ Track::finalize ( Capture *c, nframes_t frame )
timeline->wrlock(); timeline->wrlock();
c->region->finalize( frame );
DMESSAGE( "Adjusting capture by %lu frames.", (unsigned long)_capture_offset ); DMESSAGE( "Adjusting capture by %lu frames.", (unsigned long)_capture_offset );
c->region->offset( _capture_offset ); c->region->offset( _capture_offset );
_capture_offset = 0; _capture_offset = 0;
/* have to do this last, as it logs the create */
c->region->finalize( frame );
timeline->unlock(); timeline->unlock();
} }