gstreamer: Add missing property setter/getter for lookahead property

This commit is contained in:
Sebastian Dröge 2023-01-11 15:17:07 +02:00 committed by Hassene Tmar
parent 13fa6d387d
commit b498bdb765

View file

@ -347,6 +347,9 @@ gst_svtav1enc_set_property (GObject * object, guint property_id,
case PROP_SOCKET:
svtav1enc->svt_config->target_socket = g_value_get_int (value);
break;
case PROP_LOOKAHEAD:
svtav1enc->svt_config->look_ahead_distance = g_value_get_int (value);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
break;
@ -409,6 +412,9 @@ gst_svtav1enc_get_property (GObject * object, guint property_id,
case PROP_SOCKET:
g_value_set_int (value, svtav1enc->svt_config->target_socket);
break;
case PROP_LOOKAHEAD:
g_value_set_int (value, svtav1enc->svt_config->look_ahead_distance);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
break;