Skip to content

Enumerate VDPAU drivers from LD_LIBRARY_PATH and capsule-capture-libs

Ludovico de Nittis requested to merge wip/denittis/t19545 into master

VDPAU modules can be loaded in three different ways:

  • Using VDPAU_DRIVER_PATH environment variable, if set: {VDPAU_DRIVER_PATH}/libvdpau_{VDPAU_DRIVER}.so.1
  • Using VDPAU_MODULEDIR that evaluates to something like: /usr/lib/{multiarch}/libvdpau_{VDPAU_DRIVER}.so.1
  • dlopening the bare filename libvdpau_${VDPAU_DRIVER}.so

This commit tries to cover the third way that was still missing.

/cc @smcv @jpwhiting

Merge request reports

Loading