assrender: use subtitle segment to calculate running time for text

Not the video segment. This just for correctness, shouldn't make
any difference in practice since we don't support external SSA yet.
This commit is contained in:
Tim-Philipp Müller 2019-04-06 14:31:37 +01:00
parent f11ce297f4
commit eb6a1cf07e

View file

@ -1275,10 +1275,10 @@ wait_for_text_buf:
/* If timestamp and duration are valid */
text_running_time =
gst_segment_to_running_time (&render->video_segment,
gst_segment_to_running_time (&render->subtitle_segment,
GST_FORMAT_TIME, text_start);
text_running_time_end =
gst_segment_to_running_time (&render->video_segment,
gst_segment_to_running_time (&render->subtitle_segment,
GST_FORMAT_TIME, text_end);
GST_LOG_OBJECT (render, "T: %" GST_TIME_FORMAT " - %" GST_TIME_FORMAT,