mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 09:39:15 +00:00
Merge pull request #1033 from Sophira/alsa-custom-fix
linux-alsa: Display the "Custom" entry once only
This commit is contained in:
commit
6778be17d9
|
@ -312,8 +312,6 @@ obs_properties_t * alsa_get_properties(void *unused)
|
|||
|
||||
obs_property_list_add_string(devices, descr, name);
|
||||
|
||||
obs_property_list_add_string(devices, "Custom", "__custom__");
|
||||
|
||||
next:
|
||||
if (name != NULL)
|
||||
free(name), name = NULL;
|
||||
|
@ -326,6 +324,8 @@ obs_properties_t * alsa_get_properties(void *unused)
|
|||
|
||||
++hint;
|
||||
}
|
||||
obs_property_list_add_string(devices, "Custom", "__custom__");
|
||||
|
||||
snd_device_name_free_hint(hints);
|
||||
|
||||
return props;
|
||||
|
|
Loading…
Reference in a new issue