From: Víctor Manuel Jáquez Leal Date: Sun, 18 Jul 2021 10:46:08 +0000 (+0200) Subject: va: filter: Refactor set_formats() to set_video_info(). X-Git-Tag: 1.19.3~507^2~150 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9abeea49a01c6d2ce6df53b399a9d064fbdcde8f;p=platform%2Fupstream%2Fgstreamer.git va: filter: Refactor set_formats() to set_video_info(). Part-of: --- diff --git a/sys/va/gstvafilter.c b/sys/va/gstvafilter.c index de1c0d1..3204aaa 100644 --- a/sys/va/gstvafilter.c +++ b/sys/va/gstvafilter.c @@ -1184,7 +1184,7 @@ set_properties: } gboolean -gst_va_filter_set_formats (GstVaFilter * self, GstVideoInfo * in_info, +gst_va_filter_set_video_info (GstVaFilter * self, GstVideoInfo * in_info, GstVideoInfo * out_info) { g_return_val_if_fail (GST_IS_VA_FILTER (self), FALSE); diff --git a/sys/va/gstvafilter.h b/sys/va/gstvafilter.h index d6dbfb3..676d37b 100644 --- a/sys/va/gstvafilter.h +++ b/sys/va/gstvafilter.h @@ -77,7 +77,7 @@ const gpointer gst_va_filter_get_filter_caps (GstVaFilter * self, guint32 gst_va_filter_get_mem_types (GstVaFilter * self); GArray * gst_va_filter_get_surface_formats (GstVaFilter * self); GstCaps * gst_va_filter_get_caps (GstVaFilter * self); -gboolean gst_va_filter_set_formats (GstVaFilter * self, +gboolean gst_va_filter_set_video_info (GstVaFilter * self, GstVideoInfo * in_info, GstVideoInfo * out_info); gboolean gst_va_filter_add_filter_buffer (GstVaFilter * self, diff --git a/sys/va/gstvavpp.c b/sys/va/gstvavpp.c index 94e5ae9..d294b5c 100644 --- a/sys/va/gstvavpp.c +++ b/sys/va/gstvavpp.c @@ -849,8 +849,8 @@ gst_va_vpp_set_caps (GstBaseTransform * trans, GstCaps * incaps, self->in_info = in_info; self->out_info = out_info; - self->negotiated = - gst_va_filter_set_formats (self->filter, &self->in_info, &self->out_info); + self->negotiated = gst_va_filter_set_video_info (self->filter, &self->in_info, + &self->out_info); if (self->negotiated) gst_va_vpp_update_passthrough (self, FALSE);