mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-06-03 00:00:20 +00:00
Fixed server format selection.
This commit is contained in:
parent
16531e1437
commit
d56efaae8b
@ -70,7 +70,7 @@ typedef struct _audin_server
|
||||
* @return 0 on success, otherwise a Win32 error code
|
||||
*/
|
||||
static UINT audin_server_select_format(audin_server_context* context,
|
||||
int client_format_index)
|
||||
size_t client_format_index)
|
||||
{
|
||||
audin_server* audin = (audin_server*) context;
|
||||
|
||||
@ -81,7 +81,7 @@ static UINT audin_server_select_format(audin_server_context* context,
|
||||
return ERROR_INVALID_DATA;
|
||||
}
|
||||
|
||||
context->selected_client_format = client_format_index;
|
||||
context->selected_client_format = (SSIZE_T)client_format_index;
|
||||
|
||||
if (!freerdp_dsp_context_reset(audin->dsp_context,
|
||||
&audin->context.client_formats[client_format_index]))
|
||||
|
@ -28,7 +28,7 @@
|
||||
|
||||
typedef struct _audin_server_context audin_server_context;
|
||||
|
||||
typedef UINT(*psAudinServerSelectFormat)(audin_server_context* context, int client_format_index);
|
||||
typedef UINT(*psAudinServerSelectFormat)(audin_server_context* context, size_t client_format_index);
|
||||
typedef BOOL (*psAudinServerOpen)(audin_server_context* context);
|
||||
typedef BOOL (*psAudinServerIsOpen)(audin_server_context* context);
|
||||
typedef BOOL (*psAudinServerClose)(audin_server_context* context);
|
||||
|
@ -60,8 +60,7 @@ static UINT AudinServerOpening(audin_server_context* context)
|
||||
return CHANNEL_RC_OK;
|
||||
}
|
||||
|
||||
context->SelectFormat(context, i);
|
||||
return CHANNEL_RC_OK;
|
||||
return IFCALLRESULT(ERROR_CALL_NOT_IMPLEMENTED, context->SelectFormat, context, i);
|
||||
}
|
||||
/**
|
||||
* Function description
|
||||
|
Loading…
Reference in New Issue
Block a user