mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
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:
parent
952f252104
commit
7d62166098
4 changed files with 0 additions and 34 deletions
|
@ -2044,26 +2044,6 @@ gst_msdkcaps_set_strings (GstCaps * caps,
|
||||||
return TRUE;
|
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
|
gboolean
|
||||||
gst_msdkcaps_video_info_from_caps (const GstCaps * caps,
|
gst_msdkcaps_video_info_from_caps (const GstCaps * caps,
|
||||||
GstVideoInfo * info, guint64 * modifier)
|
GstVideoInfo * info, guint64 * modifier)
|
||||||
|
|
|
@ -78,9 +78,6 @@ gboolean
|
||||||
gst_msdkcaps_set_strings (GstCaps * caps,
|
gst_msdkcaps_set_strings (GstCaps * caps,
|
||||||
const gchar * features, const char * field, const gchar * strings);
|
const gchar * features, const char * field, const gchar * strings);
|
||||||
|
|
||||||
gboolean
|
|
||||||
gst_msdkcaps_remove_structure (GstCaps * caps, const gchar * features);
|
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
gst_msdkcaps_video_info_from_caps (const GstCaps * caps,
|
gst_msdkcaps_video_info_from_caps (const GstCaps * caps,
|
||||||
GstVideoInfo * info, guint64 * modifier);
|
GstVideoInfo * info, guint64 * modifier);
|
||||||
|
|
|
@ -243,12 +243,7 @@ gst_msdkvc1dec_register (GstPlugin * plugin,
|
||||||
|
|
||||||
cdata = g_new (MsdkDecCData, 1);
|
cdata = g_new (MsdkDecCData, 1);
|
||||||
cdata->sink_caps = gst_caps_ref (sink_caps);
|
cdata->sink_caps = gst_caps_ref (sink_caps);
|
||||||
#ifndef _WIN32
|
|
||||||
cdata->src_caps = gst_caps_ref (src_caps);
|
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_SET (cdata->sink_caps,
|
||||||
GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED);
|
GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED);
|
||||||
|
|
|
@ -243,13 +243,7 @@ gst_msdkvp8dec_register (GstPlugin * plugin,
|
||||||
|
|
||||||
cdata = g_new (MsdkDecCData, 1);
|
cdata = g_new (MsdkDecCData, 1);
|
||||||
cdata->sink_caps = gst_caps_ref (sink_caps);
|
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);
|
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_SET (cdata->sink_caps,
|
||||||
GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED);
|
GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED);
|
||||||
|
|
Loading…
Reference in a new issue