From 4aa516f30507aa517c4fbdd0bf20235001df2523 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Tue, 8 Mar 2022 03:45:01 +0900 Subject: [PATCH] cudamemorycopy: Remove texture-target caps field It's GL specific field, and we can remove it unconditionally Part-of: --- subprojects/gst-plugins-bad/sys/nvcodec/gstcudamemorycopy.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/nvcodec/gstcudamemorycopy.c b/subprojects/gst-plugins-bad/sys/nvcodec/gstcudamemorycopy.c index a1390f7..42c416a 100644 --- a/subprojects/gst-plugins-bad/sys/nvcodec/gstcudamemorycopy.c +++ b/subprojects/gst-plugins-bad/sys/nvcodec/gstcudamemorycopy.c @@ -205,6 +205,8 @@ create_transform_caps (GstCaps * caps, gboolean to_cuda) GST_CAPS_FEATURE_MEMORY_CUDA_MEMORY); ret = gst_caps_merge (ret, new_caps); + _remove_field (ret, "texture-target"); + gst_caps_unref (sys_caps); } else { GstCaps *new_caps; @@ -221,14 +223,13 @@ create_transform_caps (GstCaps * caps, gboolean to_cuda) #ifdef HAVE_NVCODEC_GST_GL new_caps = _set_caps_features (caps, GST_CAPS_FEATURE_MEMORY_GL_MEMORY); - _remove_field (new_caps, "texture-target"); ret = gst_caps_merge (ret, new_caps); #endif new_caps = _set_caps_features (caps, GST_CAPS_FEATURE_MEMORY_SYSTEM_MEMORY); - _remove_field (new_caps, "texture-target"); ret = gst_caps_merge (ret, new_caps); + _remove_field (ret, "texture-target"); } return ret; -- 2.7.4