Skip to content

Commit e28b3e0

Browse files
CloudlessMoondebugly
authored andcommitted
FSSDLAudioQueueController使用NSRecursiveLock,当play时会调用spec.callback,此时可能会调用其他方法,导致递归
1 parent e3d2ea7 commit e28b3e0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ijkmedia/ijksdl/apple/FSSDLAudioQueueController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ @implementation FSSDLAudioQueueController {
5050
BOOL _isStopped;
5151

5252
volatile BOOL _isAborted;
53-
NSLock *_lock;
53+
NSRecursiveLock *_lock;
5454

5555
__weak FSSDLAudioQueueWeakHolder *_weakHolder;
5656
}
@@ -132,7 +132,7 @@ - (BOOL)isSupportAudioSpec:(FSAudioSpec *)aSpec err:(NSError *__autoreleasing *)
132132
_spec = aSpec;
133133
_isStopped = NO;
134134

135-
_lock = [[NSLock alloc] init];
135+
_lock = [[NSRecursiveLock alloc] init];
136136

137137
return YES;
138138
}

0 commit comments

Comments
 (0)