From 97b705b63613727d55f7e70fa826905e6f26bfe9 Mon Sep 17 00:00:00 2001 From: Arnaud de Turckheim Date: Tue, 31 Mar 2026 11:01:00 +0200 Subject: [PATCH] upipe_ts_tstd: prevent flow def negotiation Prevent new flow def negotiation when setting the max delay to the currently configured value. --- lib/upipe-ts/upipe_ts_tstd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/upipe-ts/upipe_ts_tstd.c b/lib/upipe-ts/upipe_ts_tstd.c index ce6793b73..f12219ede 100644 --- a/lib/upipe-ts/upipe_ts_tstd.c +++ b/lib/upipe-ts/upipe_ts_tstd.c @@ -1,5 +1,6 @@ /* * Copyright (C) 2014-2015 OpenHeadend S.A.R.L. + * Copyright (C) 2026 EasyTools * * Authors: Christophe Massiot * @@ -186,6 +187,9 @@ static int upipe_ts_tstd_get_max_delay(struct upipe *upipe, uint64_t *delay_p) static int upipe_ts_tstd_set_max_delay(struct upipe *upipe, uint64_t delay) { struct upipe_ts_tstd *upipe_ts_tstd = upipe_ts_tstd_from_upipe(upipe); + if (upipe_ts_tstd->max_delay == delay) + return UBASE_ERR_NONE; + upipe_ts_tstd->max_delay = delay; if (upipe_ts_tstd->flow_def != NULL) return upipe_ts_tstd_set_flow_def(upipe, upipe_ts_tstd->flow_def);