ximagesrc crashes when window resized
Submitted by David Woodhouse
Link to original bug (#795281)
Description
XID=$(xwininfo -int | sed -n 's/xwininfo: Window id: ([0-9]+) .*/\1/p')
gst-launch-1.0 ximagesrc xid=$XID use-damage=0 ! video/x-raw,framerate=3/1 ! videoconvert ! autovideosink
Now resize the window you chose. First make it larger, and observe that you're only getting the top left-hand corner of it. Then make it smaller and watch ximagesrc crash:
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 130 (MIT-SHM)
Minor opcode of failed request: 4 (X_ShmGetImage)
Serial number of failed request: 65
Current serial number in output stream: 65
It should really reconfigure the pipeline with new geometry as the window resizes.
Version: 1.12.4