mattgallagher / AudioStreamer

A streaming audio player class (AudioStreamer) for Mac OS X and iPhone.
http://cocoawithlove.com
1.93k stars 553 forks source link

EXC_BAD_ACCESS for some URLs #13

Closed sdavi closed 6 months ago

sdavi commented 14 years ago

I have found some URLs fail to open and causes a EXC_BAD_ACCESS in Cleanup: at CFReadStreamClose(stream);

I found adding the following to openReadStream fixes the problem for me:

if (!CFReadStreamOpen(stream)){
    CFRelease(stream);
    stream = nil; // added