summaryrefslogtreecommitdiffstats
path: root/macosx/HBPlayerHUDController.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2016-05-04 08:24:54 +0200
committerDamiano Galassi <[email protected]>2016-05-04 08:24:54 +0200
commit6ae6fbcfd10b36f635e27c8f1f3dff6f9deed2a1 (patch)
tree3f2ebab31bde4e338c61b191c57f746feab9f797 /macosx/HBPlayerHUDController.m
parent9c4d6ce13e2ee3a17264ecd01ade6707db7942bd (diff)
MacGui: fix build on 10.10 sdk.
Diffstat (limited to 'macosx/HBPlayerHUDController.m')
-rw-r--r--macosx/HBPlayerHUDController.m13
1 files changed, 12 insertions, 1 deletions
diff --git a/macosx/HBPlayerHUDController.m b/macosx/HBPlayerHUDController.m
index 03eed5a84..ebafc95c1 100644
--- a/macosx/HBPlayerHUDController.m
+++ b/macosx/HBPlayerHUDController.m
@@ -61,6 +61,8 @@
{
[self.player removeRateObserver:self.rateObserver];
[self.player removeTimeObserver:self.periodicObserver];
+ self.rateObserver = nil;
+ self.periodicObserver = nil;
[self _clearTracksMenu];
}
@@ -100,7 +102,16 @@
- (void)dealloc
{
- // Remove observers
+ if (_rateObserver)
+ {
+ [_player removeRateObserver:_rateObserver];
+ _rateObserver = nil;
+ }
+ if (_periodicObserver)
+ {
+ [_player removeTimeObserver:_periodicObserver];
+ _periodicObserver = nil;
+ }
}
#pragma mark - Audio and subtitles selection menu