mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-01-13 07:08:10 +03:00
media-converter: Add format=S16LE to audioconv caps.
As opusdec will only output that format, and we want to be able to filter the elements from their capabilities early. CW-Bug-Id: #19854
This commit is contained in:
parent
f0a10371c9
commit
2ad85256a3
@ -155,7 +155,9 @@ impl ElementImpl for AudioConvBin {
|
||||
gst::PadPresence::Always,
|
||||
&caps).unwrap();
|
||||
|
||||
let caps = gst::Caps::builder("audio/x-raw").build();
|
||||
let caps = gst::Caps::builder("audio/x-raw")
|
||||
.field("format", "S16LE") /* opusdec always output S16LE */
|
||||
.build();
|
||||
let src_pad_template = gst::PadTemplate::new(
|
||||
"src",
|
||||
gst::PadDirection::Src,
|
||||
|
Loading…
x
Reference in New Issue
Block a user