From 190e18358d44eda551e512df512bb344c6532517 Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Mon, 5 Jun 2023 02:27:28 +0200 Subject: [PATCH] Stop play when changing file --- Medianno/MADocWindow.mm | 3 ++- Medianno/MAShortenQTTime.mm | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Medianno/MADocWindow.mm b/Medianno/MADocWindow.mm index 131f071..047cf13 100644 --- a/Medianno/MADocWindow.mm +++ b/Medianno/MADocWindow.mm @@ -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; } diff --git a/Medianno/MAShortenQTTime.mm b/Medianno/MAShortenQTTime.mm index 581d48a..3e922b3 100644 --- a/Medianno/MAShortenQTTime.mm +++ b/Medianno/MAShortenQTTime.mm @@ -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"