diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2015-10-30 20:59:41 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-11-03 09:36:46 +0200 |
commit | c5f5fd8f098059336aa7c128045c783ae5a933ae (patch) | |
tree | 4dfbe43269176bdd56f7cc25cf4d2b6fcc08d98d | |
parent | 5338d87d4e20b9f7fcd4f53b224c134b1e56ab0e (diff) | |
download | gstreamer-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.c | 7 |
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 ] ") ); |