Commit a493185e authored by David Fuhrmann's avatar David Fuhrmann

macosx: Fix crash in eyetv controller, reformat

parent 2d47c8c0
...@@ -34,16 +34,20 @@ ...@@ -34,16 +34,20 @@
{ {
self = [super init]; self = [super init];
if (self) { if (self) {
[[NSDistributedNotificationCenter defaultCenter] [[NSDistributedNotificationCenter defaultCenter] addObserver:self
addObserver:self selector:@selector(globalNotificationReceived:)
selector:@selector(globalNotificationReceived:) name:NULL
name:NULL object:@"VLCEyeTVSupport"
object:@"VLCEyeTVSupport" suspensionBehavior:NSNotificationSuspensionBehaviorDeliverImmediately];
suspensionBehavior:NSNotificationSuspensionBehaviorDeliverImmediately];
} }
return self; return self;
} }
- (void)dealloc
{
[[NSDistributedNotificationCenter defaultCenter] removeObserver:self];
}
- (void)globalNotificationReceived: (NSNotification *)theNotification - (void)globalNotificationReceived: (NSNotification *)theNotification
{ {
/* update our info on the used device */ /* update our info on the used device */
......
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