When using a gstreamer pipeline with xvimagesink and the screen resolution is changed (EDID changes or the hdmi output is unplugged) the pipeline exits with an X Error like the following:
X Error of failed request: BadAlloc (insufficient resources for operation)
Major opcode of failed request: 148 (XVideo)
Minor opcode of failed request: 19 ()
Serial number of failed request: 18964450
Current serial number in output stream: 18964450
I have determined that this does not happen if not using compiz but I need to use compiz to remove tearing artifacts in the video.