From bcaf72ba62625b759d408af31050cf621f06d534 Mon Sep 17 00:00:00 2001 From: Jordan Yelloz Date: Tue, 22 Oct 2024 09:13:06 -0600 Subject: [PATCH] mpegtsmux: Schedule PMT update on stream removal Following the behavior of tsmux_program_add_stream(), this ensures that a PMT update will also be caused by removal of a stream from a program. Part-of: --- subprojects/gst-plugins-bad/gst/mpegtsmux/tsmux/tsmux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subprojects/gst-plugins-bad/gst/mpegtsmux/tsmux/tsmux.c b/subprojects/gst-plugins-bad/gst/mpegtsmux/tsmux/tsmux.c index ca069f142f..23c2ebb9a9 100644 --- a/subprojects/gst-plugins-bad/gst/mpegtsmux/tsmux/tsmux.c +++ b/subprojects/gst-plugins-bad/gst/mpegtsmux/tsmux/tsmux.c @@ -821,6 +821,8 @@ tsmux_program_remove_stream (TsMuxProgram * program, TsMuxStream * stream) return FALSE; } + program->pmt_changed = TRUE; + return streams->len == 0; }