tttocea608: specify raw 608 field

The element can only output field=0 raw 608 data.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1166>
This commit is contained in:
Mathieu Duponchelle 2023-04-07 19:13:41 +02:00 committed by Matthew Waters
parent f366c20869
commit 355f925954
2 changed files with 2 additions and 1 deletions

View file

@ -5049,7 +5049,7 @@
"presence": "always"
},
"src": {
"caps": "closedcaption/x-cea-608:\n format: raw\n framerate: [ 1/2147483647, 2147483647/1 ]\n",
"caps": "closedcaption/x-cea-608:\n format: raw\n framerate: [ 1/2147483647, 2147483647/1 ]\n field: 0\n",
"direction": "src",
"presence": "always"
}

View file

@ -1163,6 +1163,7 @@ impl ElementImpl for TtToCea608 {
let caps = gst::Caps::builder("closedcaption/x-cea-608")
.field("format", "raw")
.field("framerate", framerate)
.field("field", 0)
.build();
let src_pad_template = gst::PadTemplate::new(