vah264enc: Disable derived image support
authorSeungha Yang <seungha@centricular.com>
Thu, 31 Mar 2022 20:02:58 +0000 (05:02 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 2 Apr 2022 07:04:03 +0000 (07:04 +0000)
Behavior of derived image seems to be platform dependent and
it's buggy in some cases.

Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1110
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2086>

subprojects/gst-plugins-bad/sys/va/gstvah264enc.c

index b514c3b12ed048f6c252847e4e18dae4de69547d..5072650c18faed441b630a163dd7ba7a148c8811 100644 (file)
@@ -3165,7 +3165,7 @@ _get_sinkpad_pool (GstVaH264Enc * self)
   allocator = gst_va_allocator_new (self->display, surface_formats);
 
   self->raw_pool = gst_va_pool_new_with_config (caps, size, 1, 0,
-      usage_hint, GST_VA_FEATURE_AUTO, allocator, &params);
+      usage_hint, GST_VA_FEATURE_DISABLED, allocator, &params);
   if (!self->raw_pool) {
     gst_object_unref (allocator);
     return NULL;
@@ -3710,7 +3710,7 @@ gst_va_h264_enc_propose_allocation (GstVideoEncoder * venc, GstQuery * query)
     return FALSE;
 
   pool = gst_va_pool_new_with_config (caps, size, 1, 0, usage_hint,
-      GST_VA_FEATURE_AUTO, allocator, &params);
+      GST_VA_FEATURE_DISABLED, allocator, &params);
   if (!pool) {
     gst_object_unref (allocator);
     goto config_failed;