Disable decoding on dedicated thread
This commit is contained in:
parent
47acc310d4
commit
ee267a1d12
|
@ -144,7 +144,7 @@ X_STATUS XmaDecoder::Setup(kernel::KernelState* kernel_state) {
|
|||
kernel::object_ref<kernel::XHostThread>(new kernel::XHostThread(
|
||||
kernel_state, 128 * 1024, 0,
|
||||
[this]() {
|
||||
WorkerThreadMain();
|
||||
// WorkerThreadMain();
|
||||
return 0;
|
||||
},
|
||||
kernel_state
|
||||
|
@ -311,6 +311,7 @@ void XmaDecoder::WriteRegister(uint32_t addr, uint32_t value) {
|
|||
uint32_t context_id = base_context_id + i;
|
||||
auto& context = contexts_[context_id];
|
||||
context.Enable();
|
||||
context.Work();
|
||||
}
|
||||
}
|
||||
// Signal the decoder thread to start processing.
|
||||
|
|
Loading…
Reference in New Issue