mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-15 21:22:40 +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
|
bool
|
||||||
VAAPIRenderer::initialize(SDL_Window* window, int, int width, int height)
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
vaSetErrorCallback(vaDeviceContext->display, &VAAPIRenderer::vaapiLogError, nullptr);
|
|
||||||
vaSetInfoCallback(vaDeviceContext->display, &VAAPIRenderer::vaapiLogInfo, nullptr);
|
|
||||||
|
|
||||||
int major, minor;
|
int major, minor;
|
||||||
VAStatus status;
|
VAStatus status;
|
||||||
status = vaInitialize(vaDeviceContext->display, &major, &minor);
|
status = vaInitialize(vaDeviceContext->display, &major, &minor);
|
||||||
|
|||||||
@@ -38,9 +38,6 @@ public:
|
|||||||
virtual void renderFrame(AVFrame* frame);
|
virtual void renderFrame(AVFrame* frame);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static void vaapiLogError(void*, const char *message);
|
|
||||||
static void vaapiLogInfo(void*, const char *message);
|
|
||||||
|
|
||||||
int m_WindowSystem;
|
int m_WindowSystem;
|
||||||
AVBufferRef* m_HwContext;
|
AVBufferRef* m_HwContext;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user