Skip to content

Commit

Permalink
rpi: Fixed "Could not get DISPMANX objects." error
Browse files Browse the repository at this point in the history
  • Loading branch information
cyph84 committed Aug 8, 2021
1 parent 8300830 commit e2fdca0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -549,11 +549,17 @@ video_output_features = [
}, {
'name': '--rpi',
'desc': 'Raspberry Pi support',
'func': check_egl_provider(name='brcmegl', check=any_check(
check_pkg_config('brcmegl'),
check_pkg_config('/opt/vc/lib/pkgconfig/brcmegl.pc')
)),
'func': check_egl_provider(name='brcmegl', check=compose_checks(
# RPI libraries need to be added in this order to initialize properly
any_check(check_pkg_config('mmal'), check_pkg_config('/opt/vc/lib/pkgconfig/mmal.pc')),
any_check(check_pkg_config('brcmegl'), check_pkg_config('/opt/vc/lib/pkgconfig/brcmegl.pc'))
)),
'default': 'disable',
}, {
'name': '--rpi-mmal',
'desc': 'Raspberry Pi MMAL hwaccel',
'deps': 'rpi',
'func': check_true,
} , {
'name': '--egl',
'desc': 'EGL 1.4',
Expand Down Expand Up @@ -798,12 +804,6 @@ hwaccel_features = [
'desc': 'CUDA with graphics interop',
'deps': '(gl || vulkan) && cuda-hwaccel',
'func': check_true,
}, {
'name': '--rpi-mmal',
'desc': 'Raspberry Pi MMAL hwaccel',
'deps': 'rpi',
'func': any_check(check_pkg_config('mmal'),
check_pkg_config('/opt/vc/lib/pkgconfig/mmal.pc')),
}
]

Expand Down

0 comments on commit e2fdca0

Please sign in to comment.