projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
614ea95
)
opusenc: Place 48kHz first in the caps
author
Sebastian Dröge
<sebastian@centricular.com>
Fri, 30 Oct 2015 18:59:41 +0000
(20:59 +0200)
committer
Sebastian 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
patch
|
blob
|
history
diff --git
a/ext/opus/gstopusenc.c
b/ext/opus/gstopusenc.c
index
7fad248
..
7dfd441
100644
(file)
--- 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 ] ")
);