-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DRMPRIME: Check for FFMPEG support #23138
Conversation
Might be time to not include https://github.com/xbmc/xbmc/blob/master/cmake/platform/linux/wayland.cmake at xbmc/cmake/platform/linux/webos.cmake Line 1 in 5300149
Theres not that much in wayland.cmake. Does webos use GL or GLES, or is it possible to use either? The rest (PLATFORM_REQUIRED_DEPS except libDRM of course) can just be duplicated imo |
There is only GLES and no VAAPI. |
something like the following. (assuming you need generate-wayland-extra-protocols?)
You may want to alter the minimum versions of the various required deps to suit as well, because you no longer have to match the generic linux versions. |
212c28b
to
e7e284d
Compare
It seems there was a problem with my build setup locally and it seemingly build. LibDRM seems to be used in a lot of places and removing it using ifdefs completely seems like a worse option than just disabling the DRM Prime renderer which is crashing on webOS when enabled. |
@lrusak i know the ifdeffery will send you crazy. Any ideas on a better architectural way to handle this? |
What about creating a static query function for platforms? |
e7e284d
to
d944573
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look ok, I can test it later.
xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecDRMPRIME.cpp
Outdated
Show resolved
Hide resolved
xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecDRMPRIME.cpp
Outdated
Show resolved
Hide resolved
xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecDRMPRIME.cpp
Outdated
Show resolved
Hide resolved
xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecDRMPRIME.cpp
Outdated
Show resolved
Hide resolved
776abe3
to
4c457c8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this and it seems to work ok. I get the settings available when libdrm is present in FFmpeg. I just made a couple small comments that I would like to see addressed before merging.
xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecDRMPRIME.cpp
Outdated
Show resolved
Hide resolved
xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecDRMPRIME.cpp
Outdated
Show resolved
Hide resolved
4c457c8
to
88110bd
Compare
I have applied your suggestions |
jenkins build this please |
Description
libdrm prime is not available on webOS but is enabled by default
Motivation and context
How has this been tested?
LG OLED77C28 (webOS 7)
What is the effect on users?
Disabling a broken option in player settings (enabling leads to crash on start of a video)
Screenshots (if appropriate):
Types of change
Checklist: