Feature Submission: Added XSync support to xvimagesink
Submitted by Stirling Westrup
Created attachment 284445
Patch to implement xsync support in xvimagesink
There is an X Server extension called XSync which allows for synchronizing X operations against an external clock. Under Linux the default 'SERVERTIME' clock is a monotonic clock shared by all servers on a linux box, allowing for synchronization between independent X Servers running on a single machine.
To make use of this feature, I've added 'xsync' and 'xsync-clock' properties to xvimagesink. If xsync is true, then whenever xvimagesink would normally synchronize frames, it will attempt to do so using the XSync clock named in 'xsync-clock'
I've added this features in order to help support videowall software that needs multiple X Servers to show frames at the same moment.
This is my first attempt at modifying the internals of a complex sink like xvimagesink, and I may have made some mistakes, but the code currently appears to operate as expected.
Patch 284445, "Patch to implement xsync support in xvimagesink":