ximagesrc crashes if its display is restarted.
Submitted by Stirling Westrup
Link to original bug (#774814)
Description
We have a pipeline that we wish to keep running as long as possible, even in the face of various failures. In particular, we sometimes need to restart X seervers. If we are currently using ximagesrc to capture from that X server, then restarting the server will crash ximagesrc:
[root@chronos ~]# gst-launch-1.0 ximagesrc display-name=:46 ! fakesink sync=true
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
pkill -fl -9 "Xorg :46"
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":46"
after 51 requests (51 known processed) with 0 events remaining.
This brings down our entire pipeline, even when we are handling dozens of video outputs and only one or two would be logically affected by the loss of the input.
We would far rather have a black screen, possibly accompanied by an internal pipeline message, than a crash if an X server is rebooted.
Version: 1.10.0