mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-06 15:56:24 +00:00
Remove custom VAAPI logging functions
This commit is contained in:
@@ -26,16 +26,6 @@ VAAPIRenderer::~VAAPIRenderer()
|
||||
}
|
||||
}
|
||||
|
||||
void VAAPIRenderer::vaapiLogError(void*, const char *message)
|
||||
{
|
||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "VAAPI: %s", message);
|
||||
}
|
||||
|
||||
void VAAPIRenderer::vaapiLogInfo(void*, const char *message)
|
||||
{
|
||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "VAAPI: %s", message);
|
||||
}
|
||||
|
||||
bool
|
||||
VAAPIRenderer::initialize(SDL_Window* window, int, int width, int height)
|
||||
{
|
||||
@@ -105,9 +95,6 @@ VAAPIRenderer::initialize(SDL_Window* window, int, int width, int height)
|
||||
return false;
|
||||
}
|
||||
|
||||
vaSetErrorCallback(vaDeviceContext->display, &VAAPIRenderer::vaapiLogError, nullptr);
|
||||
vaSetInfoCallback(vaDeviceContext->display, &VAAPIRenderer::vaapiLogInfo, nullptr);
|
||||
|
||||
int major, minor;
|
||||
VAStatus status;
|
||||
status = vaInitialize(vaDeviceContext->display, &major, &minor);
|
||||
|
||||
@@ -38,9 +38,6 @@ public:
|
||||
virtual void renderFrame(AVFrame* frame);
|
||||
|
||||
private:
|
||||
static void vaapiLogError(void*, const char *message);
|
||||
static void vaapiLogInfo(void*, const char *message);
|
||||
|
||||
int m_WindowSystem;
|
||||
AVBufferRef* m_HwContext;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user