discoverer: Try to get negotiated caps first on pad-added and only then fall back...
authorSebastian Dröge <sebastian@centricular.com>
Wed, 6 May 2020 08:42:05 +0000 (11:42 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 6 May 2020 08:46:25 +0000 (11:46 +0300)
commit350a7197e777393929a1ebdef3401288c9917fbc
tree775a8109e330b18f0a4019b0720eab9f57fd3d3b
parentadd3023f09eb70cdf68130dacf4995e219f74bb9
discoverer: Try to get negotiated caps first on pad-added and only then fall back to a caps query

The negotiated caps will be more accurate and are fixed caps in any
case.

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

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/655>
gst-libs/gst/pbutils/gstdiscoverer.c