From bd940e7126ea0ba72d797987a7f539203460a1ba Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Sat, 1 Jul 2017 17:44:22 +0200 Subject: [PATCH] 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. --- ext/pango/gstbasetextoverlay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/pango/gstbasetextoverlay.c b/ext/pango/gstbasetextoverlay.c index 71696a60f1..0642c78b0e 100644 --- a/ext/pango/gstbasetextoverlay.c +++ b/ext/pango/gstbasetextoverlay.c @@ -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 */