vaencoder: Reset attribute index to one.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 27 Oct 2022 12:20:37 +0000 (14:20 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 27 Oct 2022 20:32:15 +0000 (20:32 +0000)
Further fix to 4ffb3663 where I forgot to reset the attribute index.

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

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

index 50fa38f..db836e2 100644 (file)
@@ -350,7 +350,7 @@ gst_va_encoder_open (GstVaEncoder * self, VAProfile profile,
   GArray *surface_formats = NULL;
   VAStatus status;
   GstBufferPool *recon_pool = NULL;
-  guint attrib_idx = 2;
+  guint attrib_idx = 1;
 
   g_return_val_if_fail (GST_IS_VA_ENCODER (self), FALSE);
   g_return_val_if_fail (codedbuf_size > 0, FALSE);