Skip to content

Commit 6c12179

Browse files
Fix: calculating pacing start_time (#1255)
Commit wrongly reversed the order of allocation time for enw pacing start time. Reverse it back. Fixes: acea200
1 parent 41c8b51 commit 6c12179

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/st2110/st_tx_video_session.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,9 +655,9 @@ static int tv_sync_pacing(struct mtl_main_impl* impl, struct st_tx_video_session
655655
if (required_tai) {
656656
to_epoch = 0;
657657
} else {
658-
to_epoch = start_time_ptp - ptp_time;
659658
epochs++; /* assign to next */
660659
start_time_ptp = pacing_start_time(pacing, epochs);
660+
to_epoch = start_time_ptp - ptp_time;
661661

662662
if (to_epoch < 0) {
663663
/* should never happen */

0 commit comments

Comments
 (0)