vaencoder: Reset attribute index to one.

Merged Víctor Manuel Jáquez Leal requested to merge vjaquez/gstreamer:va-encoder-fix into main

Further fix to 4ffb3663 where I forgot to reset the attribute index.

Merge request reports