msdk: Remove useless function for vp8dec and vc1dec in windows path

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5898>
This commit is contained in:
Mengkejiergeli Ba 2024-01-09 10:30:00 +08:00 committed by GStreamer Marge Bot
parent 952f252104
commit 7d62166098
4 changed files with 0 additions and 34 deletions

View file

@ -2044,26 +2044,6 @@ gst_msdkcaps_set_strings (GstCaps * caps,
return TRUE;
}
gboolean
gst_msdkcaps_remove_structure (GstCaps * caps, const gchar * features)
{
guint size;
GstCapsFeatures *f;
g_return_val_if_fail (GST_IS_CAPS (caps), FALSE);
g_return_val_if_fail (features != NULL, FALSE);
size = gst_caps_get_size (caps);
f = gst_caps_features_from_string (features);
for (guint i = 0; i < size; i++) {
if (gst_caps_features_is_equal (f, gst_caps_get_features (caps, i)))
gst_caps_remove_structure (caps, i);
}
return TRUE;
}
gboolean
gst_msdkcaps_video_info_from_caps (const GstCaps * caps,
GstVideoInfo * info, guint64 * modifier)

View file

@ -78,9 +78,6 @@ gboolean
gst_msdkcaps_set_strings (GstCaps * caps,
const gchar * features, const char * field, const gchar * strings);
gboolean
gst_msdkcaps_remove_structure (GstCaps * caps, const gchar * features);
gboolean
gst_msdkcaps_video_info_from_caps (const GstCaps * caps,
GstVideoInfo * info, guint64 * modifier);

View file

@ -243,12 +243,7 @@ gst_msdkvc1dec_register (GstPlugin * plugin,
cdata = g_new (MsdkDecCData, 1);
cdata->sink_caps = gst_caps_ref (sink_caps);
#ifndef _WIN32
cdata->src_caps = gst_caps_ref (src_caps);
#else
cdata->src_caps = gst_caps_copy (src_caps);
gst_msdkcaps_remove_structure (cdata->src_caps, "memory:D3D11Memory");
#endif
GST_MINI_OBJECT_FLAG_SET (cdata->sink_caps,
GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED);

View file

@ -243,13 +243,7 @@ gst_msdkvp8dec_register (GstPlugin * plugin,
cdata = g_new (MsdkDecCData, 1);
cdata->sink_caps = gst_caps_ref (sink_caps);
cdata->src_caps = gst_caps_copy (src_caps);
#ifndef _WIN32
cdata->src_caps = gst_caps_ref (src_caps);
#else
cdata->src_caps = gst_caps_copy (src_caps);
gst_msdkcaps_remove_structure (cdata->src_caps, "memory:D3D11Memory");
#endif
GST_MINI_OBJECT_FLAG_SET (cdata->sink_caps,
GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED);