Merge pull request #1033 from Sophira/alsa-custom-fix

linux-alsa: Display the "Custom" entry once only
This commit is contained in:
Jim 2017-11-23 00:36:56 -08:00 committed by GitHub
commit 6778be17d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;