Stop play when changing file

This commit is contained in:
Matthias Neeracher 2023-06-05 02:27:28 +02:00
parent 41098d6d2d
commit 190e18358d
2 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,7 @@
// Medianno
//
// 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"
@ -91,6 +91,7 @@ static const char * kMADocWindowObserver = "MADocWindowObserver";
//
[self willChangeValueForKey:@"currentMovie"];
if (currentMovieTimeObserver) {
[currentMovie pause];
[currentMovie removeTimeObserver:currentMovieTimeObserver];
currentMovieTimeObserver = nil;
}

View File

@ -3,7 +3,7 @@
// Medianno
//
// 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"