summaryrefslogtreecommitdiff
path: root/ext/wavpack
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2015-08-15 22:32:21 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2015-08-16 14:30:57 -0300
commita1aa942acf4a14b4538994cb0735486542a979cd (patch)
tree65cd45873de9c47721e63a79f4900d5cf89827f6 /ext/wavpack
parent1b27badcfd5c37da59ad1dfa76154358a2f21f4d (diff)
downloadgstreamer-plugins-good-a1aa942acf4a14b4538994cb0735486542a979cd.tar.gz
audioencoders: use template subset check for accept-caps
It is faster than doing a query that propagates downstream and should be enough Elements: speexenc, wavpackenc, mulawenc, alawenc
Diffstat (limited to 'ext/wavpack')
-rw-r--r--ext/wavpack/gstwavpackenc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/wavpack/gstwavpackenc.c b/ext/wavpack/gstwavpackenc.c
index 386524b40..95a8e8f56 100644
--- a/ext/wavpack/gstwavpackenc.c
+++ b/ext/wavpack/gstwavpackenc.c
@@ -345,6 +345,8 @@ gst_wavpack_enc_init (GstWavpackEnc * enc)
/* require perfect ts */
gst_audio_encoder_set_perfect_timestamp (benc, TRUE);
+
+ GST_PAD_SET_ACCEPT_TEMPLATE (GST_AUDIO_ENCODER_SINK_PAD (enc));
}