Opened 11 years ago
Closed 11 years ago
#11746 closed Bug Report - General (fixed)
VAAPI decoder not always used
Reported by: | JYA | Owned by: | JYA |
---|---|---|---|
Priority: | critical | Milestone: | 0.27 |
Component: | MythTV - Video Playback | Version: | Master Head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
Under most circumstances, VAAPI can only be used for the first video opened. If another video is opened right after (like when using live TV and changing channels); then VAAPI will not be used.
Instead VAAPI display creation will fail with an error and decoding will default to ffmpeg for following videos.
Error displayed is: "Already have a VAAPI display of a different type"
Reason is that to detect VAAPI availability, a temporary VAAPI display is created with the type X11 when there's already an OpenGL one being used.
The VAAPIDisplay shouldn't be re-used when we're only trying to check VAAPI capabilities
In 57ee0522bb3d053c67d984a4d6872bd49b71fc32/mythtv: