Fix race condition in capture finalization.
This race resulted in the failure to consistently redraw new captures in the proper color.
This commit is contained in:
parent
221242a27d
commit
7e294df84e
|
@ -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…
Reference in New Issue