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/5229>
This commit is contained in:
Seungha Yang 2023-08-23 19:27:43 +09:00 committed by GStreamer Marge Bot
parent c927159f21
commit 315cfaf2d8

View file

@ -211,6 +211,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