playbin2/3: autoplug/caps: don't expand caps to ANY
authorMatthew Waters <matthew@centricular.com>
Fri, 24 Sep 2021 05:02:27 +0000 (15:02 +1000)
committerMatthew Waters <matthew@centricular.com>
Thu, 14 Oct 2021 06:04:26 +0000 (17:04 +1100)
commit42597181e2dba758f1e0b390042cec5bcf04e227
tree0077898615d43f3fa79b19b089ed03122aae3341
parent0a781424e6bf11d8c6dff50f3a16c9dbb9690cec
playbin2/3: autoplug/caps: don't expand caps to ANY

Retrieving the pad template caps from a ghost pad returns ANY which when
merged with any other caps will return ANY.  ANY is not very specific
and may cause suboptimal code paths in e.g. decoders that assume the
lowest common denominator when presented with ANY caps.

Fixes negotiating dma-buf with vaapidecodebin between glupload in the
video sink element.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1144>
subprojects/gst-plugins-base/gst/playback/gstplaybin2.c
subprojects/gst-plugins-base/gst/playback/gstplaybin3.c