From 4772ebbddf153a7a5f56dd8f8d77291182813abd Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 24 Feb 2016 12:55:28 +0100 Subject: [PATCH] audio-converter: use helper to check intermediate format --- gst-libs/gst/audio/audio-converter.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gst-libs/gst/audio/audio-converter.c b/gst-libs/gst/audio/audio-converter.c index e6d9961750..3e91f32d45 100644 --- a/gst-libs/gst/audio/audio-converter.c +++ b/gst-libs/gst/audio/audio-converter.c @@ -959,10 +959,7 @@ gst_audio_converter_new (GstAudioConverterFlags flags, GstAudioInfo * in_info, ("same formats, no resampler and passthrough mixing -> passthrough"); convert->convert = converter_passthrough; } else { - if (in_info->finfo->format == GST_AUDIO_FORMAT_S16 || - in_info->finfo->format == GST_AUDIO_FORMAT_S32 || - in_info->finfo->format == GST_AUDIO_FORMAT_F32 || - in_info->finfo->format == GST_AUDIO_FORMAT_F64) { + if (is_intermediate_format (in_info->finfo->format)) { GST_INFO ("same formats, and passthrough mixing -> only resampling"); convert->convert = converter_resample; }