videocrop: textoverlay background is wrong while cropping
I am unsure where this bug is located. Could be in videocrop, textoverlay, or ximagesink.
How to reproduce:
gst-launch-1.0 -v videotestsrc ! video/x-raw,width=500,height=100 ! videocrop left=1 ! textoverlay text="Test" font-desc="Sans, 20" shaded-background=true ! ximagesink
Expected output: A window showing the videotestsrc with the dimensions 499x100 and with the text "Test" shown above a semitransparent background.
Actual output: A window showing the videotestsrc with the dimensions 499x100 and with the text "Test" shown, but the semitransparent background is no longer behind the text as it looks like each line of the text background is offset by one pixel, resulting in the background being a trapezoid.
I do not expect this to be an issue in textoverlay, as in my application, I also see that the stream freezes if I try to change the cropping while playing, even if there is no text overlay.