muhku / FreeStreamer

A low-memory footprint streaming audio player for iOS and OS X
http://muhku.github.io/FreeStreamer/
Other
2.11k stars 434 forks source link

CFStringCompareWithOptions crash in audio_stream.cpp #389

Closed lefex closed 6 years ago

lefex commented 6 years ago

if (kCFCompareEqualTo == CFStringCompareWithOptions(contentType, audioContentType, CFRangeMake(0, CFStringGetLength(audioContentType)),0)) { matchesAudioContentType = true; }

This will crash, when contentType is "audio" and audioContentType is "audio/" 。

lefex commented 6 years ago

@muhku Thanks