mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 10:40:34 +00:00
fixing up double symbols
Original commit message from CVS: fixing up double symbols
This commit is contained in:
parent
cdda2aa934
commit
cae2948963
1 changed files with 10 additions and 10 deletions
|
@ -298,15 +298,15 @@ void gst_structure_set_name(GstStructure *structure, const gchar *name)
|
|||
void gst_structure_id_set_value(GstStructure *structure, GQuark field,
|
||||
const GValue *value)
|
||||
{
|
||||
GstStructureField field = { 0, { 0, } };
|
||||
GstStructureField gsfield = { 0, { 0, } };
|
||||
|
||||
g_return_if_fail(structure != NULL);
|
||||
g_return_if_fail(G_IS_VALUE(value));
|
||||
|
||||
field.name = fieldname;
|
||||
gst_value_init_and_copy (&field.value, value);
|
||||
gsfield.name = field;
|
||||
gst_value_init_and_copy (&gsfield.value, value);
|
||||
|
||||
gst_structure_set_field(structure, &field);
|
||||
gst_structure_set_field(structure, &gsfield);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -323,10 +323,10 @@ void gst_structure_set_value(GstStructure *structure, const gchar *fieldname,
|
|||
const GValue *value)
|
||||
{
|
||||
g_return_if_fail(structure != NULL);
|
||||
g_return_if_fail(field != NULL);
|
||||
g_return_if_fail(fieldname != NULL);
|
||||
g_return_if_fail(G_IS_VALUE(value));
|
||||
|
||||
gst_structure_id_set_value(structure, g_quark_from_string(field), value);
|
||||
gst_structure_id_set_value(structure, g_quark_from_string(fieldname), value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -542,14 +542,14 @@ gst_structure_get_value(const GstStructure *structure, const gchar *fieldname)
|
|||
const GValue *
|
||||
gst_structure_id_get_value(const GstStructure *structure, GQuark field)
|
||||
{
|
||||
GstStructureField *field;
|
||||
GstStructureField *gsfield;
|
||||
|
||||
g_return_val_if_fail(structure != NULL, NULL);
|
||||
|
||||
field = gst_structure_id_get_field(structure, id);
|
||||
if(field == NULL) return NULL;
|
||||
gsfield = gst_structure_id_get_field(structure, field);
|
||||
if(gsfield == NULL) return NULL;
|
||||
|
||||
return &field->value;
|
||||
return &gsfield->value;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue