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" );
|
DMESSAGE( "finalzing capture" );
|
||||||
|
|
||||||
/* now finalize the recording */
|
Track::Capture *c = _capture;
|
||||||
track()->finalize( _capture, _stop_frame );
|
|
||||||
|
|
||||||
delete _capture;
|
|
||||||
_capture = NULL;
|
_capture = NULL;
|
||||||
|
|
||||||
|
/* now finalize the recording */
|
||||||
|
track()->finalize( c, _stop_frame );
|
||||||
|
|
||||||
|
delete c;
|
||||||
|
|
||||||
_terminate = false;
|
_terminate = false;
|
||||||
DMESSAGE( "capture thread gone" );
|
DMESSAGE( "capture thread gone" );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue