mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2024-10-20 23:00:03 +00:00
Merge pull request #878 from vladmikhalin/fix-avplayer-is-active
Some checks are pending
Reuse / reuse (push) Waiting to run
Clang Format / clang-format (push) Waiting to run
Linux-Qt / build (push) Waiting to run
Linux / build (push) Waiting to run
macOS-Qt / build (push) Waiting to run
macOS / build (push) Waiting to run
Windows-Qt / build (push) Waiting to run
Windows / build (push) Waiting to run
Some checks are pending
Reuse / reuse (push) Waiting to run
Clang Format / clang-format (push) Waiting to run
Linux-Qt / build (push) Waiting to run
Linux / build (push) Waiting to run
macOS-Qt / build (push) Waiting to run
macOS / build (push) Waiting to run
Windows-Qt / build (push) Waiting to run
Windows / build (push) Waiting to run
Fixed the return value of sceAvPlayerIsActive
This commit is contained in:
commit
1b12138cda
|
@ -166,8 +166,8 @@ s32 PS4_SYSV_ABI sceAvPlayerInitEx(const SceAvPlayerInitDataEx* p_data,
|
||||||
bool PS4_SYSV_ABI sceAvPlayerIsActive(SceAvPlayerHandle handle) {
|
bool PS4_SYSV_ABI sceAvPlayerIsActive(SceAvPlayerHandle handle) {
|
||||||
LOG_TRACE(Lib_AvPlayer, "called");
|
LOG_TRACE(Lib_AvPlayer, "called");
|
||||||
if (handle == nullptr) {
|
if (handle == nullptr) {
|
||||||
LOG_TRACE(Lib_AvPlayer, "returning ORBIS_AVPLAYER_ERROR_INVALID_PARAMS");
|
LOG_TRACE(Lib_AvPlayer, "returning false");
|
||||||
return ORBIS_AVPLAYER_ERROR_INVALID_PARAMS;
|
return false;
|
||||||
}
|
}
|
||||||
const auto res = handle->IsActive();
|
const auto res = handle->IsActive();
|
||||||
LOG_TRACE(Lib_AvPlayer, "returning {}", res);
|
LOG_TRACE(Lib_AvPlayer, "returning {}", res);
|
||||||
|
|
Loading…
Reference in a new issue