nvh264encoder: Fix template caps
authorSeungha Yang <seungha@centricular.com>
Tue, 21 Mar 2023 11:06:12 +0000 (20:06 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 24 Mar 2023 14:00:23 +0000 (14:00 +0000)
It should include progressive as well

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

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

index 9cac64ed50dd50ecd13389060e16bbd38979b8bf..046447433468986d4f7c8af929e38193017cc823 100644 (file)
@@ -1883,7 +1883,8 @@ gst_nv_h264_encoder_create_class_data (GstObject * device, gpointer session,
   sink_caps_str = "video/x-raw, " + format_str + ", " + resolution_str;
 
   if (dev_caps.field_encoding > 0) {
-    sink_caps_str += ", interlace-mode = (string) { interleaved, mixed }";
+    sink_caps_str +=
+        ", interlace-mode = (string) { progressive, interleaved, mixed }";
   } else {
     sink_caps_str += ", interlace-mode = (string) progressive";
   }
@@ -2200,7 +2201,8 @@ gst_nv_h264_encoder_register_auto_select (GstPlugin * plugin,
   sink_caps_str = "video/x-raw, " + format_str + ", " + resolution_str;
 
   if (dev_caps.field_encoding > 0) {
-    sink_caps_str += ", interlace-mode = (string) { interleaved, mixed }";
+    sink_caps_str +=
+        ", interlace-mode = (string) { progressive, interleaved, mixed }";
   } else {
     sink_caps_str += ", interlace-mode = (string) progressive";
   }