Fix CoreFoundationDataSource not releasing resources as early as possible
This commit is contained in:
parent
8c6c74a820
commit
c9efe47e9d
Binary file not shown.
|
|
@ -1439,6 +1439,7 @@ static void AudioQueueIsRunningCallbackProc(void* userData, AudioQueueRef audioQ
|
|||
|
||||
currentlyReadingEntry.dataSource.delegate = nil;
|
||||
[currentlyReadingEntry.dataSource unregisterForEvents];
|
||||
[currentlyReadingEntry.dataSource close];
|
||||
|
||||
if (currentlyPlayingEntry)
|
||||
{
|
||||
|
|
@ -1467,6 +1468,7 @@ static void AudioQueueIsRunningCallbackProc(void* userData, AudioQueueRef audioQ
|
|||
{
|
||||
currentlyReadingEntry.dataSource.delegate = nil;
|
||||
[currentlyReadingEntry.dataSource unregisterForEvents];
|
||||
[currentlyReadingEntry.dataSource close];
|
||||
|
||||
if (currentlyPlayingEntry)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -87,6 +87,16 @@ static void ReadStreamCallbackProc(CFReadStreamRef stream, CFStreamEventType eve
|
|||
}
|
||||
}
|
||||
|
||||
-(void) close
|
||||
{
|
||||
if (stream)
|
||||
{
|
||||
CFReadStreamClose(stream);
|
||||
|
||||
stream = 0;
|
||||
}
|
||||
}
|
||||
|
||||
-(void) seekToOffset:(long long)offset
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue