From 22369e97fcfff7ab1b18e2598361bdade335fe7e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 17 Apr 2019 18:43:12 +0200 Subject: [PATCH] Use correct enum in wxOSX wxMediaCtrl code The values we check for are elements of AVPlayerItemStatus enum and not AVPlayerStatus, so use the correct type for the variable. This actually doesn't change anything and the enum elements have the same values anyhow, but the code makes more sense now and avoids -Wenum-compare-switch warnings from Xcode 10 compiler. --- src/osx/cocoa/mediactrl.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osx/cocoa/mediactrl.mm b/src/osx/cocoa/mediactrl.mm index e3486a8117..10c5e2e541 100644 --- a/src/osx/cocoa/mediactrl.mm +++ b/src/osx/cocoa/mediactrl.mm @@ -162,7 +162,7 @@ private: id val = [change objectForKey:NSKeyValueChangeNewKey]; if ( val != [NSNull null ] ) { - AVPlayerStatus status = (AVPlayerStatus) [ val integerValue]; + AVPlayerItemStatus status = (AVPlayerItemStatus) [ val integerValue]; switch (status) {