vadeinterlace: Accept ANY feature.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1024>
This commit is contained in:
Víctor Manuel Jáquez Leal 2021-10-11 13:05:24 +02:00 committed by GStreamer Marge Bot
parent bf1b03e5cb
commit 5c6b641ae3

View file

@ -717,10 +717,17 @@ gst_va_deinterlace_class_init (gpointer g_class, gpointer class_data)
display = gst_va_display_drm_new_from_path (btrans_class->render_device_path);
filter = gst_va_filter_new (display);
if (gst_va_filter_open (filter))
if (gst_va_filter_open (filter)) {
src_caps = gst_va_filter_get_caps (filter);
else
/* adds any to enable passthrough */
{
GstCaps *any_caps = gst_caps_new_empty_simple ("video/x-raw");
gst_caps_set_features_simple (any_caps, gst_caps_features_new_any ());
src_caps = gst_caps_merge (src_caps, any_caps);
}
} else {
src_caps = gst_caps_from_string (caps_str);
}
sink_caps = gst_va_deinterlace_remove_interlace (src_caps);