kmssink: Short green screen when doing modesetting with NV12 format
Describe your issue
When streaming a YUV video(for example NV12) to kmssink with modesetting enabled, there's a green screen at the beginning.
Steps to reproduce the bug
- Add a udelay(1000000) at the end of subprojects/gst-plugins-bad/sys/kms/gstkmssink.c's configure_mode_setting()
- Run: gst-launch-1.0 videotestsrc ! 'video/x-raw,format=NV12' ! videoconvert ! kmssink force-modesetting=1
Solutions you have tried
Force using BGRx format to allocate the initial empty buffer: JeffyCN/gstreamer@d52d64b9 But that depends on some other downstream hacks.