From: Sanchayan Maity Date: Fri, 28 Oct 2022 13:27:44 +0000 (+0530) Subject: wavparse: Speed up type finding for DTS X-Git-Tag: 1.22.0~653 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=858e51638338f34c5c8889ac15b9aac8c0a08ffc;p=platform%2Fupstream%2Fgstreamer.git wavparse: Speed up type finding for DTS In order to figure out if the "raw" audio contained within the wav container is actually DTS, right now we call the typefinder helper which runs all typefinders. Speed up this type finding process by specifying the extension. Part-of: --- diff --git a/subprojects/gst-plugins-good/gst/wavparse/gstwavparse.c b/subprojects/gst-plugins-good/gst/wavparse/gstwavparse.c index 677d2e5..0c624c4 100644 --- a/subprojects/gst-plugins-good/gst/wavparse/gstwavparse.c +++ b/subprojects/gst-plugins-good/gst/wavparse/gstwavparse.c @@ -1925,7 +1925,9 @@ gst_wavparse_add_src_pad (GstWavParse * wav, GstBuffer * buf) GstTypeFindProbability prob; GstCaps *tf_caps; - tf_caps = gst_type_find_helper_for_buffer (GST_OBJECT (wav), buf, &prob); + tf_caps = + gst_type_find_helper_for_buffer_with_extension (GST_OBJECT (wav), buf, + "dts", &prob); if (tf_caps != NULL) { GST_LOG ("typefind caps = %" GST_PTR_FORMAT ", P=%d", tf_caps, prob); if (gst_wavparse_have_dts_caps (tf_caps, prob)) {