mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-09 01:38:44 +00:00
Fix native Vulkan video decoding (non-imported frames)
This commit is contained in:
parent
d75663052d
commit
c74c4ef041
1 changed files with 4 additions and 3 deletions
|
@ -333,9 +333,10 @@ bool PlVkRenderer::prepareDecoderContext(AVCodecContext *context, AVDictionary *
|
||||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
||||||
"Using Vulkan video decoding");
|
"Using Vulkan video decoding");
|
||||||
|
|
||||||
if (m_Backend) {
|
// This should only be called when we're acting as the decoder backend
|
||||||
context->hw_device_ctx = av_buffer_ref(m_HwDeviceCtx);
|
SDL_assert(m_Backend == nullptr);
|
||||||
}
|
|
||||||
|
context->hw_device_ctx = av_buffer_ref(m_HwDeviceCtx);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue