]> git.sesse.net Git - vlc/commitdiff
macosx/framework: VLCLibrary initWithAudio.
authorPierre d'Herbemont <pdherbemont@free.fr>
Tue, 2 Feb 2010 13:45:17 +0000 (14:45 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Tue, 2 Feb 2010 13:45:17 +0000 (14:45 +0100)
projects/macosx/framework/Sources/VLCLibrary.m

index ac699e09fac0adbae09a4fd3ea203b3d9577cf2f..1595dda53fae6fd29ad1511073558192dd0cf18c 100644 (file)
@@ -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);
         NSAssert(instance, @"libvlc failed to initialize");
-
-        // Assignment unneeded, as the audio unit will do it for us
-        /*audio = */ [[VLCAudio alloc] initWithLibrary:self];
     }
     return self;
 }
@@ -121,11 +118,9 @@ void __catch_exception( void * e, const char * function, const char * file, int
         sharedLibrary = nil;
 
     instance = nil;
-    [audio release];
     [super dealloc];
 }
 
-@synthesize audio;
 @end
 
 @implementation VLCLibrary (VLCLibVLCBridging)
@@ -140,10 +135,3 @@ void __catch_exception( void * e, const char * function, const char * file, int
 }
 @end
 
-@implementation VLCLibrary (VLCAudioBridging)
-- (void)setAudio:(VLCAudio *)value
-{
-    if (!audio)
-        audio = value;
-}
-@end