From 78523c513000c96a2ba59d518de01f26ac722fc3 Mon Sep 17 00:00:00 2001 From: Tong Wu Date: Wed, 7 Sep 2022 10:44:16 +0800 Subject: [PATCH] msdkvpp: delete use_sinkpad_va and use_srcpad_va This two variables are no longer useful. Delete them for now. Part-of: --- subprojects/gst-plugins-bad/sys/msdk/gstmsdkvpp.c | 7 ------- subprojects/gst-plugins-bad/sys/msdk/gstmsdkvpp.h | 2 -- 2 files changed, 9 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/msdk/gstmsdkvpp.c b/subprojects/gst-plugins-bad/sys/msdk/gstmsdkvpp.c index 121ed063cd..26bbf2989a 100644 --- a/subprojects/gst-plugins-bad/sys/msdk/gstmsdkvpp.c +++ b/subprojects/gst-plugins-bad/sys/msdk/gstmsdkvpp.c @@ -623,9 +623,6 @@ gst_msdkvpp_decide_allocation (GstBaseTransform * trans, GstQuery * query) if (_gst_caps_has_feature (caps, GST_CAPS_FEATURE_MEMORY_DMABUF)) { GST_INFO_OBJECT (thiz, "MSDK VPP srcpad uses DMABuf memory"); thiz->use_srcpad_dmabuf = TRUE; - } else if (_gst_caps_has_feature (caps, GST_CAPS_FEATURE_MEMORY_VA)) { - GST_INFO_OBJECT (thiz, "MSDK VPP srcpad uses VA memory"); - thiz->use_srcpad_va = TRUE; } #endif @@ -1366,12 +1363,10 @@ gst_msdkvpp_fixate_caps (GstBaseTransform * trans, GstMsdkVPP *thiz = GST_MSDKVPP (trans); GstCaps *result = NULL; gboolean *use_dmabuf; - gboolean *use_va; if (direction == GST_PAD_SRC) { result = gst_caps_fixate (result); use_dmabuf = &thiz->use_sinkpad_dmabuf; - use_va = &thiz->use_sinkpad_va; } else { /* * Override mirroring & rotation properties once video-direction @@ -1383,7 +1378,6 @@ gst_msdkvpp_fixate_caps (GstBaseTransform * trans, result = gst_msdkvpp_fixate_srccaps (thiz, caps, othercaps); use_dmabuf = &thiz->use_srcpad_dmabuf; - use_va = &thiz->use_srcpad_va; } GST_DEBUG_OBJECT (trans, "fixated to %" GST_PTR_FORMAT, result); @@ -1397,7 +1391,6 @@ gst_msdkvpp_fixate_caps (GstBaseTransform * trans, direction == GST_PAD_SRC ? GST_PAD_SINK : GST_PAD_SRC, result)) { gst_caps_set_features (result, 0, gst_caps_features_new (GST_CAPS_FEATURE_MEMORY_VA, NULL)); - *use_va = TRUE; } else if (pad_accept_memory (thiz, GST_CAPS_FEATURE_MEMORY_DMABUF, direction == GST_PAD_SRC ? GST_PAD_SINK : GST_PAD_SRC, result)) { gst_caps_set_features (result, 0, diff --git a/subprojects/gst-plugins-bad/sys/msdk/gstmsdkvpp.h b/subprojects/gst-plugins-bad/sys/msdk/gstmsdkvpp.h index 8d0d1a37d7..4be2b90dad 100644 --- a/subprojects/gst-plugins-bad/sys/msdk/gstmsdkvpp.h +++ b/subprojects/gst-plugins-bad/sys/msdk/gstmsdkvpp.h @@ -97,8 +97,6 @@ struct _GstMsdkVPP gboolean use_video_memory; gboolean use_sinkpad_dmabuf; gboolean use_srcpad_dmabuf; - gboolean use_sinkpad_va; - gboolean use_srcpad_va; gboolean shared_context; gboolean add_video_meta; gboolean need_vpp;