mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3294>
This commit is contained in:
parent
673d13f176
commit
858e516383
1 changed files with 3 additions and 1 deletions
|
@ -1925,7 +1925,9 @@ gst_wavparse_add_src_pad (GstWavParse * wav, GstBuffer * buf)
|
||||||
GstTypeFindProbability prob;
|
GstTypeFindProbability prob;
|
||||||
GstCaps *tf_caps;
|
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) {
|
if (tf_caps != NULL) {
|
||||||
GST_LOG ("typefind caps = %" GST_PTR_FORMAT ", P=%d", tf_caps, prob);
|
GST_LOG ("typefind caps = %" GST_PTR_FORMAT ", P=%d", tf_caps, prob);
|
||||||
if (gst_wavparse_have_dts_caps (tf_caps, prob)) {
|
if (gst_wavparse_have_dts_caps (tf_caps, prob)) {
|
||||||
|
|
Loading…
Reference in a new issue