From bda25f31a7f1eb5410a113cb81826458c9392ca3 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Fri, 30 Sep 2022 18:57:01 +0200 Subject: [PATCH] splitmuxsrc: don't consider unlinked pads when deactivating part If splitmuxsrc exposes multiple pads, but only one is linked, part pads will never see an EOS event. This shouldn't prevent the part from being eventually deactivated. Part-of: --- .../gst-plugins-good/gst/multifile/gstsplitmuxpartreader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-good/gst/multifile/gstsplitmuxpartreader.c b/subprojects/gst-plugins-good/gst/multifile/gstsplitmuxpartreader.c index 77a1745c7f..ef2d504e04 100644 --- a/subprojects/gst-plugins-good/gst/multifile/gstsplitmuxpartreader.c +++ b/subprojects/gst-plugins-good/gst/multifile/gstsplitmuxpartreader.c @@ -274,7 +274,8 @@ splitmux_part_is_eos_locked (GstSplitMuxPartReader * part) GList *cur; for (cur = g_list_first (part->pads); cur != NULL; cur = g_list_next (cur)) { GstSplitMuxPartPad *part_pad = SPLITMUX_PART_PAD_CAST (cur->data); - if (!part_pad->is_eos) + if (GST_PAD_LAST_FLOW_RETURN (part_pad->target) != GST_FLOW_NOT_LINKED + && !part_pad->is_eos) return FALSE; }