overlaycomposition: crash with access violation when using a pool of two buffers in "draw" callback
(on windows 32 bit, btw)
create a pool of two buffers sized to the video window, and alternate between the two buffers on the "draw" callback:
- write to buffer 0 and attach buffer 0 via gst_video_overlay_rectangle_new_raw()
- write to buffer 1 and attach buffer 1 via gst_video_overlay_rectangle_new_raw()
- write to buffer 0 and attach buffer 0 via gst_video_overlay_rectangle_new_raw()
I am using a pool so I can sometimes make use of the "caching" feature, where an overlay buffer is cached when the pointer doesn't change, but I can also change the buffer by cycling through the two different buffers, so i can refresh the display.
If I don't cycle between buffers, and always use buffer 0, then there is no crash.