gst_video_overlay_set_render_rectangle broken on windows for several sinks
Submitted by pepijn
Created attachment 373601
Screenshot of d3dvideosink behaviour
I'm porting a QtQuick application to Windows.
On Linux we use glimagesink, which is re-parented to the Qt window an has its render rectangle set to a specific QML rectangle. (It is my understanding that QtQuick.controls 2 does not use QWidget, so therefore cannot be re-parented to the rectangle itself)
Initially I used glimagesink on Windows too, but it takes up the full window.
It does not honour the render rectangle at all.
Furthermore, if you resize the window, it freezes after a while.
The only other Windows-specific plugin available on my system is d3dvideosink.
This one respects the rectangle, but the math is bugged.
First it draws a surface at the correct location, but then it renders the video at the same offset within the rectangle.