From c5f5fd8f098059336aa7c128045c783ae5a933ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 30 Oct 2015 20:59:41 +0200 Subject: opusenc: Place 48kHz first in the caps For all the other sample rates the encoder will have to resample internally. --- ext/opus/gstopusenc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 ] ") ); -- cgit v1.2.1