mirror of https://github.com/mpv-player/mpv
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 "audio/out/ao.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
#define CA_CFSTR_ENCODING kCFStringEncodingASCII
|
#define CA_CFSTR_ENCODING kCFStringEncodingUTF8
|
||||||
|
|
||||||
CFStringRef cfstr_from_cstr(char *str);
|
CFStringRef cfstr_from_cstr(char *str);
|
||||||
char *cfstr_get_cstr(CFStringRef cfstr);
|
char *cfstr_get_cstr(CFStringRef cfstr);
|
||||||
|
|
Loading…
Reference in New Issue