v4l2object: Make extra-controls property mutable in playing state

Certain encoder user controls as well as codec controls can be
changed while the pipeline is in playing state.
e.g. Codec controls like video_bitrate, frame_ltr_index,
use_ltr_frames, etc. and user controls like horizontal_flip,
vertical_flip can be changed while the pipeline is running.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9168>
This commit is contained in:
Pratik Pachange 2025-06-03 16:38:49 +05:30 committed by GStreamer Marge Bot
parent 607d24dfc6
commit 0e78a6c5aa

View File

@ -511,7 +511,9 @@ gst_v4l2_object_install_m2m_properties_helper (GObjectClass * gobject_class)
g_object_class_install_property (gobject_class, PROP_EXTRA_CONTROLS,
g_param_spec_boxed ("extra-controls", "Extra Controls",
"Extra v4l2 controls (CIDs) for the device",
GST_TYPE_STRUCTURE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
GST_TYPE_STRUCTURE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS |
GST_PARAM_MUTABLE_PLAYING));
}
/* Support for 32bit off_t, this wrapper is casting off_t to gint64 */