Get stop frame right when finalizing regions.
This commit is contained in:
parent
91614d9aa1
commit
f4661611a0
|
@ -213,7 +213,6 @@ Record_DS::start ( nframes_t frame )
|
||||||
void
|
void
|
||||||
Record_DS::stop ( nframes_t frame )
|
Record_DS::stop ( nframes_t frame )
|
||||||
{
|
{
|
||||||
|
|
||||||
if ( ! _recording )
|
if ( ! _recording )
|
||||||
{
|
{
|
||||||
printf( "programming error: attempt to stop recording when no recording is being made\n" );
|
printf( "programming error: attempt to stop recording when no recording is being made\n" );
|
||||||
|
|
|
@ -1167,12 +1167,14 @@ Timeline::record ( void )
|
||||||
void
|
void
|
||||||
Timeline::stop ( void )
|
Timeline::stop ( void )
|
||||||
{
|
{
|
||||||
|
nframes_t frame = transport->frame;
|
||||||
|
|
||||||
for ( int i = tracks->children(); i-- ; )
|
for ( int i = tracks->children(); i-- ; )
|
||||||
{
|
{
|
||||||
Track *t = (Track*)tracks->child( i );
|
Track *t = (Track*)tracks->child( i );
|
||||||
|
|
||||||
if ( t->armed() && t->record_ds )
|
if ( t->armed() && t->record_ds )
|
||||||
t->record_ds->stop( transport->frame );
|
t->record_ds->stop( frame );
|
||||||
}
|
}
|
||||||
|
|
||||||
Loggable::block_end();
|
Loggable::block_end();
|
||||||
|
|
Loading…
Reference in New Issue