summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-10-30 20:59:41 +0200
committerSebastian Dröge <sebastian@centricular.com>2015-11-02 09:36:43 +0200
commit7cadfcb0b0f7bb9ecfbe5f106b97e526c2d90801 (patch)
treecdd40892c1d52c6230d82068356e4b60ed495b1d
parent54a5859960f2b82f065c2dd499c6b537c71193cf (diff)
downloadgstreamer-plugins-base-7cadfcb0b0f7bb9ecfbe5f106b97e526c2d90801.tar.gz
opusenc: Place 48kHz first in the caps
For all the other sample rates the encoder will have to resample internally.
-rw-r--r--ext/opus/gstopusenc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/opus/gstopusenc.c b/ext/opus/gstopusenc.c
index 7fad24881..7dfd44151 100644
--- a/ext/opus/gstopusenc.c
+++ b/ext/opus/gstopusenc.c
@@ -166,7 +166,12 @@ static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink",
GST_STATIC_CAPS ("audio/x-raw, "
"format = (string) " FORMAT_STR ", "
"layout = (string) interleaved, "
- "rate = (int) { 8000, 12000, 16000, 24000, 48000 }, "
+ "rate = (int) 48000, "
+ "channels = (int) [ 1, 2 ]; "
+ "audio/x-raw, "
+ "format = (string) " FORMAT_STR ", "
+ "layout = (string) interleaved, "
+ "rate = (int) { 8000, 12000, 16000, 24000 }, "
"channels = (int) [ 1, 2 ] ")
);