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.
This commit is contained in:
Vadim Zeitlin 2016-12-19 22:34:45 +01:00
parent 632997e449
commit 2c1e6a5435

View File

@ -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;