Browse Source

Fix race condition in capture finalization.

This race resulted in the failure to consistently redraw new captures
in the proper color.
tags/non-daw-v1.1.0
Jonathan Moore Liles 17 years ago
parent
commit
7e294df84e
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      Timeline/Engine/Record_DS.C

+ 6
- 3
Timeline/Engine/Record_DS.C View File

@@ -198,12 +198,15 @@ Record_DS::disk_thread ( void )

DMESSAGE( "finalzing capture" );

/* now finalize the recording */
track()->finalize( _capture, _stop_frame );
Track::Capture *c = _capture;

delete _capture;
_capture = NULL;

/* now finalize the recording */
track()->finalize( c, _stop_frame );

delete c;

_terminate = false;
DMESSAGE( "capture thread gone" );
}


Loading…
Cancel
Save