From: Flole998 Date: Thu, 15 Sep 2022 00:31:24 +0000 (+0200) Subject: Fix crash when mpegts_service_refresh tries to open the CAT again X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86f3617c8972c5362e51cee7d34cc2d69d799126;p=thirdparty%2Ftvheadend.git Fix crash when mpegts_service_refresh tries to open the CAT again --- diff --git a/src/input/mpegts/mpegts_input.c b/src/input/mpegts/mpegts_input.c index bebb1de29..a89fc65ed 100644 --- a/src/input/mpegts/mpegts_input.c +++ b/src/input/mpegts/mpegts_input.c @@ -821,7 +821,8 @@ void mpegts_input_open_cat_monitor ( mpegts_mux_t *mm, mpegts_service_t *s ) { - assert(s->s_cat_mon == NULL); + if (s->s_cat_mon) + mpegts_table_destroy(s_cat_mon); s->s_cat_mon = mpegts_table_add(mm, DVB_CAT_BASE, DVB_CAT_MASK, mpegts_input_cat_pass_callback, s, "cat",