vaapiencode: allow to set property on runtime

Tis patch, allows some properties that we want to be set on
runtime. (eg. bitrate)

Note that all properties are under control by num_codedbuf_queued.

https://bugzilla.gnome.org/show_bug.cgi?id=786321
This commit is contained in:
Hyunjun Ko 2017-10-20 12:37:15 +02:00 committed by Víctor Manuel Jáquez Leal
parent acfabb3561
commit 8ef3bc3cc2

View file

@ -175,11 +175,18 @@ gst_vaapiencode_default_set_property (GstVaapiEncode * encode, guint prop_id,
const GValue * value)
{
PropValue *const prop_value = prop_value_lookup (encode, prop_id);
GstVaapiEncoder *encoder = encode->encoder;
if (prop_value) {
g_value_copy (value, &prop_value->value);
if (encoder)
return (gst_vaapi_encoder_set_property (encoder, prop_id,
value) == GST_VAAPI_ENCODER_STATUS_SUCCESS);
return TRUE;
}
return FALSE;
}