From 2c1e6a54354583a907dd61dd4bed78249685cde6 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 19 Dec 2016 22:34:45 +0100 Subject: [PATCH] Fix not-quite-harmless warning in wxAVMediaBackend code Take the "player" of the right type in -[wxAVView initWithFrame:player:] method: we need a wxAVPlayer, which has a writable "playerLayer" field that we set, and not an arbitrary AVPlayer here. This fixes a warning which could become a problem if anything else than wxAVPlayer was ever passed as parameter to this function. --- 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 f4f1822cba..aeb7f0da7f 100644 --- a/src/osx/cocoa/mediactrl.mm +++ b/src/osx/cocoa/mediactrl.mm @@ -332,7 +332,7 @@ private: } } -- (id) initWithFrame:(NSRect)rect player:(AVPlayer*) player +- (id) initWithFrame:(NSRect)rect player:(wxAVPlayer*) player { if ( !(self=[super initWithFrame:rect]) ) return nil;