Support sample rate range

This commit is contained in:
Rafael Caricio 2022-03-31 16:35:42 +02:00
parent 2f09033c50
commit 43677b6c09
Signed by: rafaelcaricio
GPG key ID: 3C86DBCE8E93C947

View file

@ -1032,7 +1032,7 @@ impl ElementImpl for Transcriber {
let sink_caps = gst::Caps::builder("audio/x-raw")
.field("format", "S16LE")
.field("rate", 16000)
.field("rate", gst::IntRange::new(8_000_i32, 48_000))
.field("channels", 1)
.build();
let sink_pad_template = gst::PadTemplate::new(