Fix DrmRenderer build
This commit is contained in:
parent
ecfcedad58
commit
dff02eab7d
2 changed files with 3 additions and 1 deletions
|
|
@ -185,7 +185,7 @@ void DrmRenderer::prepareToRender()
|
||||||
// operation that the KMSDRM backend keeps pending until the next
|
// operation that the KMSDRM backend keeps pending until the next
|
||||||
// time we swap buffers. We have to do this before we enumerate
|
// time we swap buffers. We have to do this before we enumerate
|
||||||
// CRTC modes below.
|
// CRTC modes below.
|
||||||
SDL_Renderer* renderer = SDL_CreateRenderer(params->window, -1, SDL_RENDERER_SOFTWARE);
|
SDL_Renderer* renderer = SDL_CreateRenderer(m_Window, -1, SDL_RENDERER_SOFTWARE);
|
||||||
if (renderer != nullptr) {
|
if (renderer != nullptr) {
|
||||||
// SDL_CreateRenderer() can end up having to recreate our window (SDL_RecreateWindow())
|
// SDL_CreateRenderer() can end up having to recreate our window (SDL_RecreateWindow())
|
||||||
// to ensure it's compatible with the renderer's OpenGL context. If that happens, we
|
// to ensure it's compatible with the renderer's OpenGL context. If that happens, we
|
||||||
|
|
@ -238,6 +238,7 @@ bool DrmRenderer::initialize(PDECODER_PARAMETERS params)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
m_Window = params->window;
|
||||||
m_Main10Hdr = (params->videoFormat & VIDEO_FORMAT_MASK_10BIT);
|
m_Main10Hdr = (params->videoFormat & VIDEO_FORMAT_MASK_10BIT);
|
||||||
m_SwFrameMapper.setVideoFormat(params->videoFormat);
|
m_SwFrameMapper.setVideoFormat(params->videoFormat);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,7 @@ private:
|
||||||
bool addFbForFrame(AVFrame* frame, uint32_t* newFbId, bool testMode);
|
bool addFbForFrame(AVFrame* frame, uint32_t* newFbId, bool testMode);
|
||||||
|
|
||||||
IFFmpegRenderer* m_BackendRenderer;
|
IFFmpegRenderer* m_BackendRenderer;
|
||||||
|
SDL_Window* m_Window;
|
||||||
bool m_DrmPrimeBackend;
|
bool m_DrmPrimeBackend;
|
||||||
bool m_HwAccelBackend;
|
bool m_HwAccelBackend;
|
||||||
AVBufferRef* m_HwContext;
|
AVBufferRef* m_HwContext;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue