basetextoverlay: Fix segfault when overlay outside the frame
authorLuis de Bethencourt <luis.bg@samsung.com>
Fri, 10 Oct 2014 04:35:19 +0000 (10:05 +0530)
committerLuis de Bethencourt <luis.bg@samsung.com>
Sat, 11 Oct 2014 18:06:03 +0000 (19:06 +0100)
commit1cc311156cc3908d1d9888fbcda67305fc647337
tree64d483ccacd3ff00ac9f93e0b7dde376e0ef0d96
parent57ac7b18004e6bfa0117ef146939e6830d2dd47d
basetextoverlay: Fix segfault when overlay outside the frame

When the textoverlay is set outside the video frame by deltax or deltay the
calculation segfaults, but it is also  unnecessary since it doesn't need to be
displayed. So we should clip the text.

https://bugzilla.gnome.org/show_bug.cgi?id=738242
ext/pango/gstbasetextoverlay.c