va: postproc: rename function to gst_va_vpp_update_passthrough

Since it's widely used, a proper name will reflect its importance.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2094>
This commit is contained in:
Víctor Manuel Jáquez Leal 2021-03-19 16:14:08 +01:00
parent 640a65bf96
commit 594c1450da

View File

@ -199,7 +199,7 @@ gst_va_vpp_dispose (GObject * object)
} }
static void static void
_update_passthrough (GstVaVpp * self, gboolean reconf) gst_va_vpp_update_passthrough (GstVaVpp * self, gboolean reconf)
{ {
GstBaseTransform *trans = GST_BASE_TRANSFORM (self); GstBaseTransform *trans = GST_BASE_TRANSFORM (self);
gboolean old, new; gboolean old, new;
@ -324,7 +324,7 @@ gst_va_vpp_set_property (GObject * object, guint prop_id,
/* no reconfig here because it's done in /* no reconfig here because it's done in
* _update_properties_unlocked() */ * _update_properties_unlocked() */
_update_passthrough (self, FALSE); gst_va_vpp_update_passthrough (self, FALSE);
} }
static void static void
@ -395,7 +395,7 @@ gst_va_vpp_change_state (GstElement * element, GstStateChange transition)
if (!gst_va_filter_open (self->filter)) if (!gst_va_filter_open (self->filter))
goto open_failed; goto open_failed;
_update_properties_unlocked (self); _update_properties_unlocked (self);
_update_passthrough (self, FALSE); gst_va_vpp_update_passthrough (self, FALSE);
break; break;
default: default:
break; break;
@ -813,7 +813,7 @@ gst_va_vpp_set_caps (GstBaseTransform * trans, GstCaps * incaps,
gst_va_filter_set_formats (self->filter, &self->in_info, &self->out_info); gst_va_filter_set_formats (self->filter, &self->in_info, &self->out_info);
if (self->negotiated) if (self->negotiated)
_update_passthrough (self, FALSE); gst_va_vpp_update_passthrough (self, FALSE);
return self->negotiated; return self->negotiated;
@ -1004,7 +1004,7 @@ gst_va_vpp_before_transform (GstBaseTransform * trans, GstBuffer * inbuf)
if (g_atomic_int_get (&self->rebuild_filters) == TRUE) { if (g_atomic_int_get (&self->rebuild_filters) == TRUE) {
gst_va_filter_drop_filter_buffers (self->filter); gst_va_filter_drop_filter_buffers (self->filter);
_build_filters (self); _build_filters (self);
_update_passthrough (self, TRUE); gst_va_vpp_update_passthrough (self, TRUE);
g_atomic_int_set (&self->rebuild_filters, FALSE); g_atomic_int_set (&self->rebuild_filters, FALSE);
} }
} }
@ -2291,7 +2291,7 @@ gst_va_vpp_sink_event (GstBaseTransform * trans, GstEvent * event)
/* no reconfig here because it's done in /* no reconfig here because it's done in
* _update_properties_unlocked */ * _update_properties_unlocked */
_update_passthrough (self, FALSE); gst_va_vpp_update_passthrough (self, FALSE);
break; break;
default: default: