crash fixes
This commit is contained in:
1 parent
1d33feec8b
commit
8ec8f32935
2 files changed
+14
-13
No files matched your search
@@ -441,21 +441,22 @@ int DrSubmitDecodeUnit(PDECODE_UNIT decodeUnit);
|
|||||||
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
||||||
[_displayLink invalidate];
|
[_displayLink invalidate];
|
||||||
}
|
}
|
||||||
- (void)cleanup
|
|
||||||
{
|
|
||||||
[_frameQueue stop];
|
|
||||||
|
|
||||||
if (_renderingBackend == RENDER_AVSB) {
|
- (void)cleanup{
|
||||||
[_displayLink invalidate];
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
}
|
[self->_frameQueue stop];
|
||||||
|
|
||||||
@synchronized(self) {
|
if (self->_renderingBackend == RENDER_AVSB) {
|
||||||
if (_decompressionSession != NULL) {
|
[self->_displayLink invalidate];
|
||||||
VTDecompressionSessionInvalidate(_decompressionSession);
|
|
||||||
CFRelease(_decompressionSession);
|
|
||||||
_decompressionSession = nil;
|
|
||||||
}
|
}
|
||||||
}
|
@synchronized(self) {
|
||||||
|
if (self->_decompressionSession != NULL) {
|
||||||
|
VTDecompressionSessionInvalidate(self->_decompressionSession);
|
||||||
|
CFRelease(self->_decompressionSession);
|
||||||
|
self->_decompressionSession = nil;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
#define NALU_START_PREFIX_SIZE 3
|
#define NALU_START_PREFIX_SIZE 3
|
||||||
|
|||||||
@@ -1689,7 +1689,7 @@ BOOL isCustomResolution(int resolutionSelected) {
|
|||||||
[_favoriteSettingStackIdentifiers removeAllObjects];
|
[_favoriteSettingStackIdentifiers removeAllObjects];
|
||||||
//for(NSInteger i = 0; i < parentStack.arrangedSubviews.count; i++){
|
//for(NSInteger i = 0; i < parentStack.arrangedSubviews.count; i++){
|
||||||
for(NSInteger i = 0; i < _parentStack.arrangedSubviews.count; i++){
|
for(NSInteger i = 0; i < _parentStack.arrangedSubviews.count; i++){
|
||||||
[_favoriteSettingStackIdentifiers addObject:_parentStack.arrangedSubviews[i].accessibilityIdentifier];
|
if(_parentStack.arrangedSubviews[i].accessibilityIdentifier) [_favoriteSettingStackIdentifiers addObject:_parentStack.arrangedSubviews[i].accessibilityIdentifier];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
[[NSUserDefaults standardUserDefaults] setObject:_favoriteSettingStackIdentifiers forKey:@"FavoriteSettingStackIdentifiers"];
|
[[NSUserDefaults standardUserDefaults] setObject:_favoriteSettingStackIdentifiers forKey:@"FavoriteSettingStackIdentifiers"];
|
||||||
|
|||||||
Reference in new issue
Block a user