opusenc: Place 48kHz first in the caps
authorSebastian Dröge <sebastian@centricular.com>
Fri, 30 Oct 2015 18:59:41 +0000 (20:59 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 2 Nov 2015 07:36:43 +0000 (09:36 +0200)
For all the other sample rates the encoder will have to resample internally.

ext/opus/gstopusenc.c

index 7fad248..7dfd441 100644 (file)
@@ -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 ] ")
     );