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:
parent
632997e449
commit
2c1e6a5435
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user