mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 16:32:39 +00:00
sceAvPlayerAddSourceEx - error validation
This commit is contained in:
parent
7ae1d73781
commit
e2e73ce386
@ -22,7 +22,7 @@ s32 PS4_SYSV_ABI sceAvPlayerAddSource(SceAvPlayerHandle handle, const char* file
|
||||
s32 PS4_SYSV_ABI sceAvPlayerAddSourceEx(SceAvPlayerHandle handle, SceAvPlayerUriType uriType,
|
||||
SceAvPlayerSourceDetails* sourceDetails) {
|
||||
LOG_ERROR(Lib_AvPlayer, "(STUBBED) called");
|
||||
if (handle == nullptr) {
|
||||
if (handle == nullptr || uriType != SceAvPlayerUriType::validAddSourceEx) {
|
||||
return ORBIS_AVPLAYER_ERROR_INVALID_PARAMS;
|
||||
}
|
||||
return ORBIS_OK;
|
||||
|
@ -20,6 +20,7 @@ using SceAvPlayerHandle = AvPlayer*;
|
||||
|
||||
enum class SceAvPlayerUriType : u32 {
|
||||
Source = 0,
|
||||
validAddSourceEx = 99,
|
||||
};
|
||||
|
||||
struct SceAvPlayerUri {
|
||||
|
Loading…
Reference in New Issue
Block a user