mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[core,codecs] fix freerdp_codec_id_to_str
Use UINT32 as argument instead of enum RDP_CODEC_ID as the value might be an invalid value in the enum.
This commit is contained in:
@@ -100,7 +100,7 @@ extern "C"
|
||||
* @return The name of the codecid
|
||||
* @since version 3.18.0
|
||||
*/
|
||||
FREERDP_API const char* freerdp_codec_id_to_str(enum RDP_CODEC_ID id);
|
||||
FREERDP_API const char* freerdp_codec_id_to_str(UINT32 id);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -277,7 +277,7 @@ void freerdp_client_codecs_free(rdpCodecs* codecs)
|
||||
free(codecs);
|
||||
}
|
||||
|
||||
const char* freerdp_codec_id_to_str(enum RDP_CODEC_ID id)
|
||||
const char* freerdp_codec_id_to_str(UINT32 id)
|
||||
{
|
||||
#define ENTRY(x) \
|
||||
case x: \
|
||||
|
||||
Reference in New Issue
Block a user