vaapiencode: gobject's prop_id differ from vaapi encoder

The vaapi internal encoder's property id are negative, thus they are
different from GObject's property ids.

gst_vaapi_encoder_set_property() should map to the internal encoder
property id, assigned in gst_vaapiencode_default_set_property().
This commit is contained in:
He Junyan 2019-03-15 18:40:21 +08:00 committed by Víctor Manuel Jáquez Leal
parent 29d42e1600
commit acf10ce164

View file

@ -181,7 +181,7 @@ gst_vaapiencode_default_set_property (GstVaapiEncode * encode, guint prop_id,
g_value_copy (value, &prop_value->value);
if (encoder)
return (gst_vaapi_encoder_set_property (encoder, prop_id,
return (gst_vaapi_encoder_set_property (encoder, prop_value->id,
value) == GST_VAAPI_ENCODER_STATUS_SUCCESS);
return TRUE;