Add buffer_draining property to TimeOutputBuffer to prevent unknown message runtime exception

When a layout recording is stopped, only clear the source list if there is no longer a layout recorder attached to the layout
This commit is contained in:
Zakk 2020-04-26 07:13:01 -04:00
parent d36a6a445d
commit e97f224814
2 changed files with 3 additions and 2 deletions

View file

@ -29,7 +29,7 @@
@property (assign) float bufferDuration;
@property (strong) NSString *name;
@property (strong) CSIRCompressor *compressor;
@property (assign) bool buffer_draining;
-(void) writeCurrentBuffer:(NSString *)toFile;
-(void) writeCurrentBuffer:(NSString *)toFile withCompletionBlock:(void (^)(void))completionBlock;
-(void) writeCurrentBuffer:(NSString *)toFile usingDuration:(float)seconds_to_write withCompletionBlock:(void (^)(void))completionBlock;

View file

@ -1376,12 +1376,13 @@ NSString *const CSAppearanceSystem = @"CSAppearanceSystem";
if (useRecorder)
{
[useRecorder stopRecordingForOutput:output];
[layout clearSourceList];
//output.active = NO;
if (self.mainLayoutRecorder)
{
output.settingsController = self.mainLayoutRecorder;
}
} else {
[layout clearSourceList];
}
}