aacparse: Fix caps change handling
authorVivia Nikolaidou <vivia@ahiru.eu>
Fri, 13 Nov 2020 12:58:44 +0000 (14:58 +0200)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 13 Nov 2020 13:10:05 +0000 (13:10 +0000)
commit5a2f9d510f4fa4f250bd6374b413940df8e2920e
treeb46617850babe3fb535fc5b554a8688b8742805e
parentf5310ce346180a717f091f2f09bcbb3ddfb15436
aacparse: Fix caps change handling

In baseparse we set the fixed caps flag on all src pads, therefore the
source pad caps query in get_allowed_caps will return the current caps.
Current caps won't necessarily intersect with the new caps (e.g. sample
rate change). Replace get_allowed_caps with peer_query_caps.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/816>
gst/audioparsers/gstaacparse.c