We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a63cab7 commit bd44fd8Copy full SHA for bd44fd8
2 files changed
SGPlayer/Classes/Core/SGDecoder/SGDecodeContext.m
@@ -100,7 +100,9 @@ - (void)predecode:(SGBlock)lock unlock:(SGBlock)unlock
100
self->_predecoder = [[self->_decoderClass alloc] init];
101
self->_predecoder.options = self->_options;
102
}
103
+ unlock();
104
self->_predecodeFrames = [self->_predecoder decode:packet];
105
+ lock();
106
[packet unlock];
107
108
SGPlayer/Classes/Core/SGDecoder/SGDecodeLoop.m
@@ -313,7 +313,6 @@ - (void)runningThread
313
314
[context predecode:lock unlock:unlock];
315
[self->_lock unlock];
316
- [NSThread sleepForTimeInterval:0.001];
317
continue;
318
} else if (self->_flags.state == SGDecodeLoopStateDecoding) {
319
SGDecodeContext *context = [self currentDecodeContext];
0 commit comments