Almost working ffmpeg audio decoder.
This commit is contained in:
1 parent
4eef942db4
commit
40de19c125
16 files changed
+1083
-1064
No files matched your search
+3
-3
@@ -76,9 +76,9 @@
|
||||
- (nullable id)dequeueAndWait {
|
||||
id item = [self dequeue];
|
||||
|
||||
if (!item) {
|
||||
dispatch_time_t time = dispatch_time(DISPATCH_TIME_NOW, NSEC_PER_SEC / 1000);
|
||||
dispatch_semaphore_wait(_empty, time);
|
||||
while (!item) {
|
||||
dispatch_semaphore_wait(_empty, DISPATCH_TIME_FOREVER);
|
||||
item = [self dequeue];
|
||||
}
|
||||
|
||||
return item;
|
||||
|
||||
Reference in new issue
Block a user