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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3099>
This commit is contained in:
Mathieu Duponchelle 2022-09-30 18:57:01 +02:00 committed by GStreamer Marge Bot
parent 4c8a621809
commit f8d8d67b8b

View file

@ -275,7 +275,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;
}