New upstream version 23.2.1+dfsg1
This commit is contained in:
parent
cdc9a9fc87
commit
b14f9eae6d
1017 changed files with 37232 additions and 11111 deletions
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
#ifndef _WIN32
|
||||
#include <AudioToolbox/AudioToolbox.h>
|
||||
#include <util/apple/cfstring-utils.h>
|
||||
#endif
|
||||
|
||||
#define CA_LOG(level, format, ...) \
|
||||
|
|
@ -257,17 +258,8 @@ static DStr osstatus_to_dstr(OSStatus code)
|
|||
kCFErrorDomainOSStatus, code, NULL)};
|
||||
cf_ptr<CFStringRef> str{CFErrorCopyDescription(err.get())};
|
||||
|
||||
CFIndex length = CFStringGetLength(str.get());
|
||||
CFIndex max_size = CFStringGetMaximumSizeForEncoding(length,
|
||||
kCFStringEncodingUTF8);
|
||||
|
||||
dstr_ensure_capacity(result, max_size);
|
||||
|
||||
if (result->array && CFStringGetCString(str.get(), result->array,
|
||||
max_size, kCFStringEncodingUTF8)) {
|
||||
dstr_resize(result, strlen(result->array));
|
||||
if (cfstr_copy_dstr(str.get(), kCFStringEncodingUTF8, result))
|
||||
return result;
|
||||
}
|
||||
#endif
|
||||
|
||||
const char *code_str = code_to_str(code);
|
||||
|
|
@ -1374,6 +1366,10 @@ static obs_properties_t *aac_properties(void *data)
|
|||
|
||||
OBS_DECLARE_MODULE()
|
||||
OBS_MODULE_USE_DEFAULT_LOCALE("coreaudio-encoder", "en-US")
|
||||
MODULE_EXPORT const char *obs_module_description(void)
|
||||
{
|
||||
return "Apple CoreAudio based encoder";
|
||||
}
|
||||
|
||||
bool obs_module_load(void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue