nvencoder: Fix negotiation error when interlace-mode is unspecified
authorSeungha Yang <seungha@centricular.com>
Wed, 23 Aug 2023 10:27:43 +0000 (19:27 +0900)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 24 Aug 2023 15:38:48 +0000 (16:38 +0100)
Use GST_PAD_SET_ACCEPT_INTERSECT() to accept caps without interlace-mode
field

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5240>

subprojects/gst-plugins-bad/sys/nvcodec/gstnvencoder.cpp

index 98ae74b3c77cada51c3415a56bb44300613c513d..80ed4871584c4bba3bb0b70d8fc70487a5b08e07 100644 (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