Almost working ffmpeg audio decoder.

This commit is contained in:
Damiano Galassi committed 2016-07-25 09:53:16 +02:00
1 parent 4eef942db4
commit 40de19c125
16 files changed
+1083 -1064

No files matched your search

+3 -3
View File
@@ -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;