Fix macOS build

This commit is contained in:
Cameron Gutman 2025-02-18 19:52:33 -06:00
parent 4c5bcee8dc
commit bf51577787
3 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@
#import <Metal/Metal.h>
class VTBaseRenderer : public IFFmpegRenderer {
public:
VTBaseRenderer(IFFmpegRenderer::RendererType type) : IFFmpegRenderer(type) {}
bool checkDecoderCapabilities(id<MTLDevice> device, PDECODER_PARAMETERS params);
};
#endif

View File

@ -35,7 +35,7 @@ class VTRenderer : public VTBaseRenderer
{
public:
VTRenderer()
: IFFmpegRenderer(RendererType::VTSampleLayer),
: VTBaseRenderer(RendererType::VTSampleLayer),
m_HwContext(nullptr),
m_DisplayLayer(nullptr),
m_FormatDesc(nullptr),

View File

@ -113,7 +113,7 @@ class VTMetalRenderer : public VTBaseRenderer
{
public:
VTMetalRenderer(bool hwAccel)
: IFFmpegRenderer(RendererType::VTMetal),
: VTBaseRenderer(RendererType::VTMetal),
m_HwAccel(hwAccel),
m_Window(nullptr),
m_HwContext(nullptr),