vapostproc: Remove dead code.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1369>
This commit is contained in:
Víctor Manuel Jáquez Leal 2021-10-25 19:22:05 +02:00
parent 26040bd932
commit 718e83ed4c

View file

@ -484,10 +484,6 @@ gst_va_vpp_set_info (GstVaBaseTransform * btrans, GstCaps * incaps,
else else
self->op_flags &= ~VPP_CONVERT_FEATURE; self->op_flags &= ~VPP_CONVERT_FEATURE;
if (self->op_flags & VPP_CONVERT_SIZE) {
}
if (gst_va_filter_set_video_info (btrans->filter, in_info, out_info)) { if (gst_va_filter_set_video_info (btrans->filter, in_info, out_info)) {
gst_va_vpp_update_passthrough (self, FALSE); gst_va_vpp_update_passthrough (self, FALSE);
return TRUE; return TRUE;
@ -1669,8 +1665,7 @@ transfer_colorimetry_from_input (GstVaVpp * self, GstCaps * in_caps,
} }
static void static void
copy_misc_fields_from_input (GstVaVpp * self, GstCaps * in_caps, copy_misc_fields_from_input (GstCaps * in_caps, GstCaps * out_caps)
GstCaps * out_caps)
{ {
const gchar *fields[] = { "interlace-mode", "field-order", "multiview-mode", const gchar *fields[] = { "interlace-mode", "field-order", "multiview-mode",
"multiview-flags", "framerate" "multiview-flags", "framerate"
@ -1712,7 +1707,7 @@ gst_va_vpp_fixate_caps (GstBaseTransform * trans, GstPadDirection direction,
gst_va_vpp_fixate_size (self, direction, caps, result); gst_va_vpp_fixate_size (self, direction, caps, result);
/* some fields might be lost while feature caps conversion */ /* some fields might be lost while feature caps conversion */
copy_misc_fields_from_input (self, caps, result); copy_misc_fields_from_input (caps, result);
/* fixate remaining fields */ /* fixate remaining fields */
result = gst_caps_fixate (result); result = gst_caps_fixate (result);