mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-26 05:21:00 +00:00
dav1ddec: Require correct alignment and stream format when running with GStreamer 1.20
This commit is contained in:
parent
772fbaa073
commit
2c511fca50
1 changed files with 8 additions and 1 deletions
|
@ -461,7 +461,14 @@ impl ElementImpl for Dav1dDec {
|
|||
|
||||
fn pad_templates() -> &'static [gst::PadTemplate] {
|
||||
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(
|
||||
"sink",
|
||||
gst::PadDirection::Sink,
|
||||
|
|
Loading…
Reference in a new issue