mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
udev: Don't use deprecated udev_get_*_path() functions
[These symbols were removed in libudev.so.1.0.0. Replace them with hardcoded strings. -- heftig] Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
This commit is contained in:
parent
77e73be925
commit
54718450df
2 changed files with 5 additions and 8 deletions
|
|
@ -180,7 +180,7 @@ int pa_udev_get_info(int card_idx, pa_proplist *p) {
|
|||
goto finish;
|
||||
}
|
||||
|
||||
t = pa_sprintf_malloc("%s/class/sound/card%i", udev_get_sys_path(udev), card_idx);
|
||||
t = pa_sprintf_malloc("/sys/class/sound/card%i", card_idx);
|
||||
card = udev_device_new_from_syspath(udev, t);
|
||||
pa_xfree(t);
|
||||
|
||||
|
|
@ -277,7 +277,7 @@ char* pa_udev_get_property(int card_idx, const char *name) {
|
|||
goto finish;
|
||||
}
|
||||
|
||||
t = pa_sprintf_malloc("%s/class/sound/card%i", udev_get_sys_path(udev), card_idx);
|
||||
t = pa_sprintf_malloc("/sys/class/sound/card%i", card_idx);
|
||||
card = udev_device_new_from_syspath(udev, t);
|
||||
pa_xfree(t);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue