Further seeking fix.
parent
5c819eb24c
commit
53d9869e02
|
@ -43,9 +43,7 @@
|
|||
if (availOutput == 0)
|
||||
{
|
||||
[writeLock unlock];
|
||||
NSLog(@"WAITING %i", shouldContinue);
|
||||
[semaphore wait];
|
||||
NSLog(@"NOT WAITING: %i", shouldContinue);
|
||||
[writeLock lock];
|
||||
}
|
||||
else
|
||||
|
@ -155,9 +153,9 @@
|
|||
|
||||
- (void)resetBuffer
|
||||
{
|
||||
[semaphore signal];
|
||||
[readLock lock];
|
||||
[writeLock lock];
|
||||
[semaphore signal];
|
||||
|
||||
[buffer empty];
|
||||
|
||||
|
|
Loading…
Reference in New Issue