mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-30 03:32:55 +00:00
cellSysutilAvc2Load_shared: re-arrange streaming_mode checks
This commit is contained in:
parent
cb1fb19dea
commit
96bd150518
@ -702,26 +702,7 @@ error_code cellSysutilAvc2Load_shared(SceNpMatching2ContextId ctx_id, u32 contai
|
||||
|
||||
u32 streaming_mode = init_param->direct_streaming_mode;
|
||||
|
||||
if (init_param->avc_init_param_version < 120)
|
||||
{
|
||||
if (init_param->avc_init_param_version >= 110)
|
||||
{
|
||||
switch (init_param->direct_streaming_mode)
|
||||
{
|
||||
case CELL_SYSUTIL_AVC2_STREAMING_MODE_NORMAL:
|
||||
case CELL_SYSUTIL_AVC2_STREAMING_MODE_DIRECT_WAN:
|
||||
break;
|
||||
case CELL_SYSUTIL_AVC2_STREAMING_MODE_DIRECT_LAN:
|
||||
default:
|
||||
return CELL_AVC2_ERROR_INVALID_ARGUMENT;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
streaming_mode = settings.streaming_mode;
|
||||
}
|
||||
}
|
||||
else
|
||||
if (init_param->avc_init_param_version >= 120)
|
||||
{
|
||||
switch (init_param->direct_streaming_mode)
|
||||
{
|
||||
@ -741,6 +722,22 @@ error_code cellSysutilAvc2Load_shared(SceNpMatching2ContextId ctx_id, u32 contai
|
||||
return CELL_AVC2_ERROR_INVALID_ARGUMENT;
|
||||
}
|
||||
}
|
||||
else if (init_param->avc_init_param_version >= 110)
|
||||
{
|
||||
switch (init_param->direct_streaming_mode)
|
||||
{
|
||||
case CELL_SYSUTIL_AVC2_STREAMING_MODE_NORMAL:
|
||||
case CELL_SYSUTIL_AVC2_STREAMING_MODE_DIRECT_WAN:
|
||||
break;
|
||||
case CELL_SYSUTIL_AVC2_STREAMING_MODE_DIRECT_LAN:
|
||||
default:
|
||||
return CELL_AVC2_ERROR_INVALID_ARGUMENT;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
streaming_mode = settings.streaming_mode;
|
||||
}
|
||||
|
||||
settings.streaming_mode = streaming_mode;
|
||||
settings.mic_out_stream_sharing = init_param->voice_param.mic_out_stream_sharing;
|
||||
|
Loading…
x
Reference in New Issue
Block a user