Skip to content

gloverlay: Apply updated overlay coordinates correctly

Damian Hobson-Garcia requested to merge dhobsong/gstreamer:gloverlay-fix into main

When overlay coordinates are updated, (ie. the second time the cooridnates) are set, the video appears at the location and size of where the overlay should be and the rest of the frame just flickers.

The python script in the snippet below illustrates this. dhobsong/gstreamer$7774
You need to provide an overlay.png image for this script to work. I just make a PNG from the imagemagick logo for testing

convert logo: -resize 100x100 overlay.png

It looks like this is caused by the fact that the wrong index buffer is updated when the offset changes.
This patch binds the correct buffer before updating the values.

Merge request reports