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-03 09:36:46 +0200
commitc5f5fd8f098059336aa7c128045c783ae5a933ae (patch)
tree4dfbe43269176bdd56f7cc25cf4d2b6fcc08d98d
parent5338d87d4e20b9f7fcd4f53b224c134b1e56ab0e (diff)
downloadgstreamer-plugins-bad-c5f5fd8f098059336aa7c128045c783ae5a933ae.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 ] ")
);