mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-05 22:41:18 +12:00
Fix incorrect streamout buffer index in GS + refactor various code (#258)
This commit is contained in:
parent
4a3d02db55
commit
03f5967408
45 changed files with 70 additions and 92 deletions
|
@ -54,9 +54,7 @@ namespace coreinit
|
|||
{
|
||||
}
|
||||
|
||||
~OSHostThread()
|
||||
{
|
||||
}
|
||||
~OSHostThread() = default;
|
||||
|
||||
OSThread_t* m_thread;
|
||||
Fiber m_fiber;
|
||||
|
@ -1223,7 +1221,7 @@ namespace coreinit
|
|||
{
|
||||
struct DeallocatorQueueEntry
|
||||
{
|
||||
DeallocatorQueueEntry() {};
|
||||
DeallocatorQueueEntry() = default;
|
||||
DeallocatorQueueEntry(OSThread_t* thread, MEMPTR<void> stack, MEMPTR<void> deallocatorFunc) : thread(thread), stack(stack), deallocatorFunc(deallocatorFunc) {};
|
||||
|
||||
OSThread_t* thread{};
|
||||
|
|
|
@ -835,8 +835,11 @@ namespace H264
|
|||
auto asyncTask = std::async(std::launch::async, _async_H264DECEnd, executeDoneEvent.GetPointer(), session, ctx, &results);
|
||||
coreinit::OSWaitEvent(executeDoneEvent);
|
||||
_ReleaseDecoderSession(session);
|
||||
for (auto& itr : results)
|
||||
H264DoFrameOutputCallback(ctx, itr);
|
||||
if (!results.empty())
|
||||
{
|
||||
for (auto& itr : results)
|
||||
H264DoFrameOutputCallback(ctx, itr);
|
||||
}
|
||||
return H264DEC_STATUS::SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue