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