mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
b43d0f785c
commit
9e81f8e700
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue