Changeset 712

Show
Ignore:
Timestamp:
12/08/08 22:35:53 (1 month ago)
Author:
gbooker
Message:

Corrected the popping of video playback so it always sets the watched values when needed

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/SapphireFrappliance/SapphireVideoPlayerController.m

    r693 r712  
    209209} 
    210210 
    211 - (void)wasPopped 
    212 
    213         [super wasPopped]; 
     211- (void)teardownPlayback 
     212
    214213        //Turn off the AC3 Passthrough hack 
    215214        CFPreferencesSetAppValue(PASSTHROUGH_KEY, (CFNumberRef)[NSNumber numberWithInt:((soundState & SOUND_STATE_SOUND_PASSTHROUGH)? 1 : 0)], A52_DOMIAN); 
     
    225224                elapsed = duration = 1.0f; 
    226225        if(elapsed / duration > 0.9f) 
    227                /*Mark as watched and reload info*/ 
     226        /*Mark as watched and reload info*/ 
    228227                [currentPlayFile setWatched:YES]; 
    229228         
     
    236235} 
    237236 
     237- (void)willBePopped 
     238{ 
     239        [super willBePopped]; 
     240        [self teardownPlayback]; 
     241} 
     242 
     243- (void)wasPopped 
     244{ 
     245        [super wasPopped]; 
     246        [self teardownPlayback]; 
     247} 
     248 
    238249@end