Commit 540aae33 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx/framework: VLCLibrary initWithAudio.

parent c413be8f
...@@ -95,9 +95,6 @@ void __catch_exception( void * e, const char * function, const char * file, int ...@@ -95,9 +95,6 @@ void __catch_exception( void * e, const char * function, const char * file, int
} }
instance = (void *)libvlc_new( sizeof(lib_vlc_params)/sizeof(lib_vlc_params[0]), lib_vlc_params); instance = (void *)libvlc_new( sizeof(lib_vlc_params)/sizeof(lib_vlc_params[0]), lib_vlc_params);
NSAssert(instance, @"libvlc failed to initialize"); NSAssert(instance, @"libvlc failed to initialize");
// Assignment unneeded, as the audio unit will do it for us
/*audio = */ [[VLCAudio alloc] initWithLibrary:self];
} }
return self; return self;
} }
...@@ -121,11 +118,9 @@ void __catch_exception( void * e, const char * function, const char * file, int ...@@ -121,11 +118,9 @@ void __catch_exception( void * e, const char * function, const char * file, int
sharedLibrary = nil; sharedLibrary = nil;
instance = nil; instance = nil;
[audio release];
[super dealloc]; [super dealloc];
} }
@synthesize audio;
@end @end
@implementation VLCLibrary (VLCLibVLCBridging) @implementation VLCLibrary (VLCLibVLCBridging)
...@@ -140,10 +135,3 @@ void __catch_exception( void * e, const char * function, const char * file, int ...@@ -140,10 +135,3 @@ void __catch_exception( void * e, const char * function, const char * file, int
} }
@end @end
@implementation VLCLibrary (VLCAudioBridging)
- (void)setAudio:(VLCAudio *)value
{
if (!audio)
audio = value;
}
@end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment