basetextoverlay: need avoid idx exceed memory block number

when check whether video buffer is read only, the gst_buffer_get_memory call
should make sure idx don't exceed the total memory block number

upstream status: i.mx specific

Signed-off-by: Haihua Hu <jared.hu@nxp.com>
1 file changed