mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
f11ce297f4
commit
eb6a1cf07e
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue