mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
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:
parent
9c95303f3a
commit
bd940e7126
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue