gstqsg6material: fix RGB format support
The element qml6glsink
authorizes to use RGB format in its caps. However, if this format is used, the following error is encountered:
Bail out! ERROR:../subprojects/gst-plugins-good/ext/qt6/gstqsg6material.cc:517:video_format_to_rhi_format: code should not be reached
How to reproduce:
- Modify this example to use
RGB
instead ofYV12
- Build GStreamer in debug mode, with examples enabled
- Run
qml6sink.exe
example
This merge request provides a fix by adding the missing GST_VIDEO_FORMAT_RGB
case in video_format_to_rhi_format
& video_format_to_texel_size
.
Edited by Corentin Damman