nvencoder: Fix negotiation error when interlace-mode is unspecified

Use GST_PAD_SET_ACCEPT_INTERSECT() to accept caps without interlace-mode
field

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5240>
This commit is contained in:
Seungha Yang 2023-08-23 19:27:43 +09:00 committed by Tim-Philipp Müller
parent adea0b45f7
commit 5f433d7ff2

View file

@ -183,6 +183,7 @@ gst_nv_encoder_init (GstNvEncoder * self)
gst_video_encoder_set_min_pts (GST_VIDEO_ENCODER (self),
GST_SECOND * 60 * 60 * 1000);
GST_PAD_SET_ACCEPT_INTERSECT (GST_VIDEO_ENCODER_SINK_PAD (self));
}
static void