mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-24 01:48:11 +00:00
dav1ddec: Require correct alignment and stream format when running with GStreamer 1.20
This commit is contained in:
parent
e024eb331d
commit
c194fb05f4
1 changed files with 8 additions and 1 deletions
|
@ -396,7 +396,14 @@ impl ElementImpl for Dav1dDec {
|
||||||
|
|
||||||
fn pad_templates() -> &'static [gst::PadTemplate] {
|
fn pad_templates() -> &'static [gst::PadTemplate] {
|
||||||
static PAD_TEMPLATES: Lazy<Vec<gst::PadTemplate>> = Lazy::new(|| {
|
static PAD_TEMPLATES: Lazy<Vec<gst::PadTemplate>> = Lazy::new(|| {
|
||||||
let sink_caps = gst::Caps::builder("video/x-av1").build();
|
let sink_caps = if gst::version() >= (1, 19, 0, 0) {
|
||||||
|
gst::Caps::builder("video/x-av1")
|
||||||
|
.field("stream-format", "obu-stream")
|
||||||
|
.field("alignment", gst::List::new(["frame", "tu"]))
|
||||||
|
.build()
|
||||||
|
} else {
|
||||||
|
gst::Caps::builder("video/x-av1").build()
|
||||||
|
};
|
||||||
let sink_pad_template = gst::PadTemplate::new(
|
let sink_pad_template = gst::PadTemplate::new(
|
||||||
"sink",
|
"sink",
|
||||||
gst::PadDirection::Sink,
|
gst::PadDirection::Sink,
|
||||||
|
|
Loading…
Reference in a new issue