mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-08 09:18:43 +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,
|
||||
"Using Vulkan video decoding");
|
||||
|
||||
if (m_Backend) {
|
||||
context->hw_device_ctx = av_buffer_ref(m_HwDeviceCtx);
|
||||
}
|
||||
// This should only be called when we're acting as the decoder backend
|
||||
SDL_assert(m_Backend == nullptr);
|
||||
|
||||
context->hw_device_ctx = av_buffer_ref(m_HwDeviceCtx);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue