Skip to content

Commit

Permalink
fix: macos build
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmercerind committed Apr 3, 2022
1 parent f8e2f1f commit 929f0ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions macos/Classes/VideoOutlet.mm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#import "VideoOutlet.h"

#include "player.h"
#include "core.h"

@implementation VideoOutlet {
Player* _player;
Expand Down Expand Up @@ -35,7 +35,7 @@ - (instancetype)initWithPlayer:(Player*)player

_textureId = [textureRegistry registerTexture:self];

player->OnVideo([self](uint8_t* frame, int32_t width, int32_t height) {
player->SetVideoFrameCallback([self](uint8_t* frame, int32_t width, int32_t height) {
[self onFrame:frame width:width height:height];
});
}
Expand All @@ -50,7 +50,7 @@ - (void)dealloc {
}

- (void)dispose {
_player->OnVideo(nullptr);
_player->SetVideoFrameCallback(nullptr);
[_textures unregisterTexture:_textureId];
}

Expand Down

0 comments on commit 929f0ce

Please sign in to comment.