Use bridge case for non OBJC_ARC
@@ -44,7 +44,11 @@ public:
NSArray *formatDesc = ((AVAssetTrack*)[[asset tracksWithMediaType:AVMediaTypeAudio] objectAtIndex:0]).formatDescriptions;
for(unsigned int i = 0; i < [formatDesc count]; ++i)
{
+ #ifndef OBJC_ARC
CMAudioFormatDescriptionRef item = (CMAudioFormatDescriptionRef)[formatDesc objectAtIndex:i];
+ #else
+ CMAudioFormatDescriptionRef item = (__bridge CMAudioFormatDescriptionRef)[formatDesc objectAtIndex:i];
+ #endif
const AudioStreamBasicDescription *asDesc = CMAudioFormatDescriptionGetStreamBasicDescription(item);
if (asDesc)
{
@@ -140,7 +144,6 @@ public:
#ifndef OBJC_ARC
[pool drain];
#endif
-
}
~AvDecodedData()
{
