From ce7bf5e5391fce9616ca7b2e4cb866221d837511 Mon Sep 17 00:00:00 2001 From: Tobias Taschner Date: Mon, 17 Oct 2016 11:44:16 +0200 Subject: [PATCH] Add typecast for C++11 compilation of OS X wxMediaCtrl When compiling in C++11 mode the typecast of AVPlayerStatus in the callback is required to avoid a compiler error. --- 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 7634aee9a3..1b2013b966 100644 --- a/src/osx/cocoa/mediactrl.mm +++ b/src/osx/cocoa/mediactrl.mm @@ -578,7 +578,7 @@ private: id val = [change objectForKey:NSKeyValueChangeNewKey]; if ( val != [NSNull null ] ) { - AVPlayerStatus status = [ val integerValue]; + AVPlayerStatus status = (AVPlayerStatus) [ val integerValue]; switch (status) {