wavparse: Do not run all typefinders for all output
authorSanchayan Maity <sanchayan@asymptotic.io>
Tue, 15 Nov 2022 15:52:17 +0000 (21:22 +0530)
committerSanchayan Maity <sanchayan@asymptotic.io>
Wed, 16 Nov 2022 05:02:25 +0000 (10:32 +0530)
commit02fd7fb7779b20cacce55f82b008aa941fe9dff9
treef06720eee5f6a811c06d975bd4b9b719d461cccb
parent72c51053123e7b9f0f4dc0d54de58e09ad3ded13
wavparse: Do not run all typefinders for all output

In order to figure out if the "raw" audio contained within the wav
container is actually DTS, wavparse calls the typefinder helper
except that means it runs all typefinders.

Since it only cares about checking for DTS, we should only run the
audio/x-dts typefinder (if present). Commit 858e516 did not really
fix things.

Use the new type helper with the caps to fix this.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3417>
subprojects/gst-plugins-good/gst/wavparse/gstwavparse.c