mirror of
https://github.com/mpv-player/mpv
synced 2025-02-16 12:17:12 +00:00
ao_coreaudio: specify UTF-8 as text encoding for CFString conversions
This matches our internal expectations, as well as fixes handling of non-ASCII device descriptions.
This commit is contained in:
parent
e5e918954f
commit
89bd6ead6c
@ -26,7 +26,7 @@
|
||||
#include "audio/out/ao.h"
|
||||
#include "internal.h"
|
||||
|
||||
#define CA_CFSTR_ENCODING kCFStringEncodingASCII
|
||||
#define CA_CFSTR_ENCODING kCFStringEncodingUTF8
|
||||
|
||||
CFStringRef cfstr_from_cstr(char *str);
|
||||
char *cfstr_get_cstr(CFStringRef cfstr);
|
||||
|
Loading…
Reference in New Issue
Block a user