mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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:
parent
acfabb3561
commit
8ef3bc3cc2
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue