mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-18 13:33:27 -04:00
libobs: Fix pulseaudio crash.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user