mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
add a few missing initializations
This commit is contained in:
parent
40d71e1f49
commit
ca9cd14659
2 changed files with 3 additions and 3 deletions
|
|
@ -61,7 +61,7 @@ static int read_id(struct udev_device *d, const char *n) {
|
|||
int pa_udev_get_info(pa_core *core, pa_proplist *p, int card_idx) {
|
||||
int r = -1;
|
||||
struct udev *udev;
|
||||
struct udev_device *card;
|
||||
struct udev_device *card = NULL;
|
||||
char *t;
|
||||
const char *v;
|
||||
int id;
|
||||
|
|
@ -89,7 +89,7 @@ int pa_udev_get_info(pa_core *core, pa_proplist *p, int card_idx) {
|
|||
pa_proplist_sets(p, PA_PROP_DEVICE_BUS, v);
|
||||
|
||||
if (!pa_proplist_contains(p, PA_PROP_DEVICE_VENDOR_ID))
|
||||
if ((id = read_id(card, "ID_VENDOR_ID")) > 0 && *v)
|
||||
if ((id = read_id(card, "ID_VENDOR_ID")) > 0)
|
||||
pa_proplist_setf(p, PA_PROP_DEVICE_VENDOR_ID, "%04x", id);
|
||||
|
||||
if (!pa_proplist_contains(p, PA_PROP_DEVICE_VENDOR_NAME)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue