From f4661611a049151c4ca384a88510d167a70478be Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Sat, 17 May 2008 00:34:42 -0500 Subject: [PATCH] Get stop frame right when finalizing regions. --- Timeline/Record_DS.C | 1 - Timeline/Timeline.C | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Timeline/Record_DS.C b/Timeline/Record_DS.C index c073623..1968615 100644 --- a/Timeline/Record_DS.C +++ b/Timeline/Record_DS.C @@ -213,7 +213,6 @@ Record_DS::start ( nframes_t frame ) void Record_DS::stop ( nframes_t frame ) { - if ( ! _recording ) { printf( "programming error: attempt to stop recording when no recording is being made\n" ); diff --git a/Timeline/Timeline.C b/Timeline/Timeline.C index 4bc8006..f160b9e 100644 --- a/Timeline/Timeline.C +++ b/Timeline/Timeline.C @@ -1167,12 +1167,14 @@ Timeline::record ( void ) void Timeline::stop ( void ) { + nframes_t frame = transport->frame; + for ( int i = tracks->children(); i-- ; ) { Track *t = (Track*)tracks->child( i ); if ( t->armed() && t->record_ds ) - t->record_ds->stop( transport->frame ); + t->record_ds->stop( frame ); } Loggable::block_end();