mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
va: filter: add controllable and mutable playing to GParamFlags
Add controllable and mutable playgin to common GParamFlags. Also use this common flags to video-direction Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2033>
This commit is contained in:
parent
771645e445
commit
5b117045e0
1 changed files with 4 additions and 5 deletions
|
@ -571,6 +571,9 @@ gboolean
|
|||
gst_va_filter_install_properties (GstVaFilter * self, GObjectClass * klass)
|
||||
{
|
||||
guint i;
|
||||
const GParamFlags common_flags = G_PARAM_READWRITE
|
||||
| GST_PARAM_CONDITIONALLY_AVAILABLE | G_PARAM_STATIC_STRINGS
|
||||
| GST_PARAM_MUTABLE_PLAYING | GST_PARAM_CONTROLLABLE;
|
||||
|
||||
g_return_val_if_fail (GST_IS_VA_FILTER (self), FALSE);
|
||||
|
||||
|
@ -583,9 +586,6 @@ gst_va_filter_install_properties (GstVaFilter * self, GObjectClass * klass)
|
|||
for (i = 0; i < self->available_filters->len; i++) {
|
||||
const struct VaFilter *filter =
|
||||
&g_array_index (self->available_filters, struct VaFilter, i);
|
||||
const GParamFlags common_flags = G_PARAM_READWRITE
|
||||
| GST_PARAM_CONDITIONALLY_AVAILABLE | G_PARAM_STATIC_STRINGS
|
||||
| GST_PARAM_DOC_SHOW_DEFAULT;
|
||||
|
||||
switch (filter->type) {
|
||||
case VAProcFilterNoiseReduction:{
|
||||
|
@ -659,8 +659,7 @@ gst_va_filter_install_properties (GstVaFilter * self, GObjectClass * klass)
|
|||
g_param_spec_enum ("video-direction", "Video Direction",
|
||||
"Video direction: rotation and flipping",
|
||||
GST_TYPE_VIDEO_ORIENTATION_METHOD, GST_VIDEO_ORIENTATION_IDENTITY,
|
||||
G_PARAM_READWRITE | GST_PARAM_CONDITIONALLY_AVAILABLE
|
||||
| G_PARAM_STATIC_STRINGS | GST_PARAM_DOC_SHOW_DEFAULT));
|
||||
common_flags));
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue