mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 18:20:44 +00:00
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:
parent
4c8a621809
commit
f8d8d67b8b
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue