mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +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/3148>
This commit is contained in:
parent
1477dab01d
commit
bda25f31a7
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue