Timeline: Order region finalization to ensure correct logging.

pull/116/head
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();
c->region->finalize( frame );
DMESSAGE( "Adjusting capture by %lu frames.", (unsigned long)_capture_offset );
c->region->offset( _capture_offset );
_capture_offset = 0;
/* have to do this last, as it logs the create */
c->region->finalize( frame );
timeline->unlock();
}