mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 23:41:26 +12:00
Bugfix
This commit is contained in:
parent
1636531d4a
commit
f16ec62b4a
5 changed files with 21 additions and 26 deletions
|
@ -214,12 +214,12 @@ next:
|
|||
}
|
||||
}
|
||||
|
||||
u32 adecOpen(AudioDecoder* data)
|
||||
u32 adecOpen(AudioDecoder* adec_ptr)
|
||||
{
|
||||
std::shared_ptr<AudioDecoder> data_ptr(data);
|
||||
AudioDecoder& adec = *data;
|
||||
std::shared_ptr<AudioDecoder> sptr(adec_ptr);
|
||||
AudioDecoder& adec = *adec_ptr;
|
||||
|
||||
u32 adec_id = cellAdec->GetNewId(data_ptr);
|
||||
u32 adec_id = cellAdec->GetNewId(sptr);
|
||||
|
||||
adec.id = adec_id;
|
||||
|
||||
|
@ -232,8 +232,9 @@ u32 adecOpen(AudioDecoder* data)
|
|||
adec.adecCb->InitRegs();
|
||||
adec.adecCb->DoRun();
|
||||
|
||||
thread t("Audio Decoder[" + std::to_string(adec_id) + "] Thread", [&, data_ptr]()
|
||||
thread t("Audio Decoder[" + std::to_string(adec_id) + "] Thread", [adec_ptr, sptr]()
|
||||
{
|
||||
AudioDecoder& adec = *adec_ptr;
|
||||
cellAdec->Notice("Audio Decoder thread started");
|
||||
|
||||
AdecTask& task = adec.task;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue