nvenc: Fix caps negotiation failure on unspecified interlace-mode

During GstVideoInfo conversion from GstCaps, interlace-mode is
inferred to progressive so unspecified interlace-mode should not cause any
negotiation issue. Simly set GST_PAD_FLAG_ACCEPT_INTERSECT flag
on sinkpad to fix issue.
This commit is contained in:
Seungha Yang 2019-07-27 00:52:59 +09:00 committed by Sebastian Dröge
parent b43d0f785c
commit 9e81f8e700

View file

@ -537,6 +537,8 @@ gst_nv_base_enc_init (GstNvBaseEnc * nvenc)
GST_VIDEO_ENCODER_STREAM_LOCK (encoder);
GST_VIDEO_ENCODER_STREAM_UNLOCK (encoder);
GST_PAD_SET_ACCEPT_INTERSECT (GST_VIDEO_ENCODER_SINK_PAD (encoder));
}
static void