GNOME Bugzilla – Bug 611986
[cairotextoverlay] Out-of-range deltas give SIGSEGV or other funkyness
Last modified: 2010-03-15 12:42:25 UTC
Created attachment 155403 [details] cairotextoverlay on videotestsrc where the y offset is out of bounds It seems that the delta parameters of the cairotextoverlay are not clipped to the frame size. On my OS, with deltax=0 and deltay=0, the text is centered at the bottom of the window. A small deltay is enough to get the text out of view, but still generating funkyness. You might need to adjust the deltay to see the same effect (please refer to the attachment). gst-launch videotestsrc ! cairotextoverlay text="Hi there" deltay=35 ! ffmpegcolorspace ! ximagesink In another launchline, this may even lead to illegal memory access (or so I suppose from the SIGSEGV signals): gst-launch videotestsrc ! cairotextoverlay deltay=35 text="CAM1" ! video/x-raw-yuv, width=720, height=576 ! jpegenc ! jpegdec ! ffmpegcolorspace ! ximagesink I hope it is not to difficult to clip the output of cairotextoverlay to a valid bounding rectangle.
commit a7a0afa5c4f9a98631b639998bbb3be91b00f978 Author: Sebastian Dröge <sebastian.droege@collabora.co.uk> Date: Mon Mar 15 13:40:38 2010 +0100 cairotextoverlay: Don't render text outside the frame boundaries Fixes bug #611986.