mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
caps: remove old code
Remove attempt to delay _make_writable
This commit is contained in:
parent
7a7119ec99
commit
e08956907c
1 changed files with 0 additions and 6 deletions
|
@ -1498,7 +1498,6 @@ typedef struct _NormalizeForeach
|
|||
{
|
||||
GstCaps *caps;
|
||||
GstStructure *structure;
|
||||
gboolean writable;
|
||||
}
|
||||
NormalizeForeach;
|
||||
|
||||
|
@ -1516,10 +1515,6 @@ gst_caps_normalize_foreach (GQuark field_id, const GValue * value, gpointer ptr)
|
|||
GstStructure *structure = gst_structure_copy (nf->structure);
|
||||
|
||||
gst_structure_id_set_value (structure, field_id, v);
|
||||
if (G_UNLIKELY (!nf->writable)) {
|
||||
nf->caps = gst_caps_make_writable (nf->caps);
|
||||
nf->writable = TRUE;
|
||||
}
|
||||
gst_caps_append_structure_unchecked (nf->caps, structure);
|
||||
}
|
||||
|
||||
|
@ -1555,7 +1550,6 @@ gst_caps_normalize (GstCaps * caps)
|
|||
caps = gst_caps_make_writable (caps);
|
||||
|
||||
nf.caps = caps;
|
||||
nf.writable = FALSE;
|
||||
|
||||
for (i = 0; i < gst_caps_get_size (nf.caps); i++) {
|
||||
nf.structure = gst_caps_get_structure_unchecked (nf.caps, i);
|
||||
|
|
Loading…
Reference in a new issue