pad: Reset not-linked last flow return on reconfigure events upstream/main
authorSebastian Dröge <sebastian@centricular.com>
Tue, 31 Dec 2024 08:50:58 +0000 (10:50 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 2 Jan 2025 16:23:19 +0000 (16:23 +0000)
commitf39812dc8fcf3d2696f26993efbddb3b60c18e7f
treea0ac4f01d41d0d01d75e814ba9b536ac16c6167d
parent68cdeeb8829739318c917cab2d9ab51b10926dfd
pad: Reset not-linked last flow return on reconfigure events

The pad might actually be linked now and we'd only find out by actually pushing
a buffer downstream again.

The last flow return is used by GstFlowCombiner to detect if all pads are not
linked, and not resetting this when re-linking creates a race condition when
switching between pads where all pads are temporarily considered not linked.

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3836

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8224>
subprojects/gstreamer/gst/gstpad.c