libs: Change the parameter setting order when encode picture.
authorHe Junyan <junyan.he@hotmail.com>
Fri, 29 Mar 2019 05:33:41 +0000 (13:33 +0800)
committerHe Junyan <junyan.he@hotmail.com>
Fri, 29 Mar 2019 05:33:41 +0000 (13:33 +0800)
commit6669a7fc575fbbb6dc82fcbcd4d4491e75049e51
tree6bdc3668cbfc605db0e0028103ecbe962a84b2c1
parent871aecb0d4abd0d3c770572f01a66545077655bd
libs: Change the parameter setting order when encode picture.

The order in gst_vaapi_enc_picture_encode when encoding one
picture is not very correct. The misc parameters are set before
the picture parameters. Some of the misc parameters such as
ROI may change the current picture parameters. But the later
setting of picture parameter will re-init all picture related
parameters and clear the previous setting. The right order
should be picture parameter first and then misc parameters.

Signed-off-by: He Junyan <junyan.he@hotmail.com>
gst-libs/gst/vaapi/gstvaapiencoder_objects.c