mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 18:50:48 +00:00
va: h265enc: set the reconf flag when cpb_size updated
This feature can be changed dynamically in playing state, so we need to set reconf flag to trigger reconfig. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6471>
This commit is contained in:
parent
045449e190
commit
33bc8d75ad
1 changed files with 2 additions and 1 deletions
|
@ -4860,6 +4860,7 @@ gst_va_h265_enc_set_property (GObject * object, guint prop_id,
|
|||
break;
|
||||
case PROP_CPB_SIZE:
|
||||
self->prop.cpb_size = g_value_get_uint (value);
|
||||
g_atomic_int_set (&GST_VA_BASE_ENC (self)->reconf, TRUE);
|
||||
break;
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||
|
@ -5260,7 +5261,7 @@ gst_va_h265_enc_class_init (gpointer g_klass, gpointer class_data)
|
|||
properties[PROP_CPB_SIZE] = g_param_spec_uint ("cpb-size",
|
||||
"max CPB size in Kb",
|
||||
"The desired max CPB size in Kb (0: auto-calculate)", 0, 2000 * 1024, 0,
|
||||
param_flags);
|
||||
param_flags | GST_PARAM_MUTABLE_PLAYING);
|
||||
|
||||
/**
|
||||
* GstVaH265Enc:num-tile-cols:
|
||||
|
|
Loading…
Reference in a new issue