From 38a7ee64a08bfa7d87b6794085ec0e7240a07767 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. (cherry picked from commit ce7bf5e5391fce9616ca7b2e4cb866221d837511) --- 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 9df6eb4501..90bfe37d79 100644 --- a/src/osx/cocoa/mediactrl.mm +++ b/src/osx/cocoa/mediactrl.mm @@ -581,7 +581,7 @@ private: id val = [change objectForKey:NSKeyValueChangeNewKey]; if ( val != [NSNull null ] ) { - AVPlayerStatus status = [ val integerValue]; + AVPlayerStatus status = (AVPlayerStatus) [ val integerValue]; switch (status) {