Backport of "vaapiencode: Fixes deadlock in gst_vaapiencode_change_state function" into 1.16
requested to merge tpm/gstreamer-vaapi:backport-mr-95-into-1.16-vaapi_encoder_change_state_deadlock_fix into 1.16
Backport of !95 (merged) "vaapiencode: Fixes deadlock in gst_vaapiencode_change_state function".
Commits:
- 53d86ff5 vaapiencode: Fixes deadlock in gst_vaapiencode_change_state function