textoverlay: adjust a valid text buffer duration to fall within segment

... as expected later on when end time is used to determine end running time.
Otherwise the latter is determined as NONE and the resulting text buffer is
then used indefinitely.
This commit is contained in:
Mark Nauwelaerts 2017-07-01 17:44:22 +02:00
parent 9c95303f3a
commit bd940e7126

View file

@ -2704,7 +2704,7 @@ gst_base_text_overlay_text_chain (GstPad * pad, GstObject * parent,
if (in_seg) {
if (GST_BUFFER_TIMESTAMP_IS_VALID (buffer))
GST_BUFFER_TIMESTAMP (buffer) = clip_start;
else if (GST_BUFFER_DURATION_IS_VALID (buffer))
if (GST_BUFFER_DURATION_IS_VALID (buffer))
GST_BUFFER_DURATION (buffer) = clip_stop - clip_start;
/* Wait for the previous buffer to go away */