appsrc: Don't chain up `BaseSrc::negotiate()`
authorSebastian Dröge <sebastian@centricular.com>
Thu, 19 Jan 2023 16:49:17 +0000 (18:49 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 21 Feb 2023 13:57:06 +0000 (13:57 +0000)
commitceceefd141cd2f398146f50fd6d949be40670711
treec6d921791b5dfdf8e7eb1c443ada9d45867b61c4
parent90508b7387c39c8c34f72c649560ab55c2e36bbd
appsrc: Don't chain up `BaseSrc::negotiate()`

If we have caps then we can only set exactly those caps, if we have no
caps yet then negotiating anything is not very meaningful because the
caps are defined by the application and not downstream.

Avoids, among other things, an unnecessary allocation query and spurious
useless caps being set before the first buffer.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4020>
subprojects/gst-plugins-base/gst-libs/gst/app/gstappsrc.c