Stop play when changing file
This commit is contained in:
parent
41098d6d2d
commit
190e18358d
|
@ -3,7 +3,7 @@
|
||||||
// Medianno
|
// Medianno
|
||||||
//
|
//
|
||||||
// Created by Matthias Neeracher on 8/10/11.
|
// Created by Matthias Neeracher on 8/10/11.
|
||||||
// Copyright 2011 Matthias Neeracher. All rights reserved.
|
// Copyright 2011-2023 Matthias Neeracher. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
#import "MADocWindow.h"
|
#import "MADocWindow.h"
|
||||||
|
@ -91,6 +91,7 @@ static const char * kMADocWindowObserver = "MADocWindowObserver";
|
||||||
//
|
//
|
||||||
[self willChangeValueForKey:@"currentMovie"];
|
[self willChangeValueForKey:@"currentMovie"];
|
||||||
if (currentMovieTimeObserver) {
|
if (currentMovieTimeObserver) {
|
||||||
|
[currentMovie pause];
|
||||||
[currentMovie removeTimeObserver:currentMovieTimeObserver];
|
[currentMovie removeTimeObserver:currentMovieTimeObserver];
|
||||||
currentMovieTimeObserver = nil;
|
currentMovieTimeObserver = nil;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
// Medianno
|
// Medianno
|
||||||
//
|
//
|
||||||
// Created by Matthias Neeracher on 8/15/11.
|
// Created by Matthias Neeracher on 8/15/11.
|
||||||
// Copyright 2011 Matthias Neeracher. All rights reserved.
|
// Copyright 2011-2023 Matthias Neeracher. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
#import "MAShortenQTTime.h"
|
#import "MAShortenQTTime.h"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user