mirror of
https://github.com/zakk4223/CocoaSplit.git
synced 2026-05-15 14:15:50 -06:00
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:
parent
d36a6a445d
commit
e97f224814
2 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue