Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.9.1
-
None
-
-
abab792c4f0977a4599e5b7b2e97a5ee586fe388 (qt/qtmultimedia/dev) 1c9da622dc7e8ac6fa42f5263a5410098073b662 (qt/tqtc-qtmultimedia/tqtc/lts-5.15)
Description
We are using QMediaPlayer to decode a video to a custom QAbstractVideoSurface. We are also using a third party library (VTK) which requires us to set a default surface format. Setting the default format to version 3.2, core profile, makes the frame received in our QAbstractVideoSurface to be always black.
QSurfaceFormat format = QSurfaceFormat::defaultFormat(); format.setVersion(3, 2); format.setProfile(QSurfaceFormat::CoreProfile); QSurfaceFormat::setDefaultFormat(format);
Simply commenting one of the format setting restore the frame decoding.
Please look at the attached simple program that demonstrates the behavior. You need to edit the code to change the path of the video file.
Any workaround or patch will be appreciated
Attachments
Issue Links
- relates to
-
QTBUG-51064 QML Video type doesn't work with core profile
- Closed