mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
libobs: Fix pulseaudio crash.
This commit is contained in:
parent
c5965c8605
commit
c19946d7e8
|
@ -50,7 +50,7 @@ void get_default_id(char **id)
|
|||
(pa_server_info_cb_t)pulseaudio_default_devices, (void *)pdo);
|
||||
|
||||
if (!pdo->default_sink_name || !*pdo->default_sink_name) {
|
||||
*id = NULL;
|
||||
*id = bzalloc(1);
|
||||
} else {
|
||||
*id = bzalloc(strlen(pdo->default_sink_name) + 9);
|
||||
strcat(*id, pdo->default_sink_name);
|
||||
|
|
Loading…
Reference in a new issue