structure: Make both parameters to gst_structure_is_equal() const

This commit is contained in:
Sebastian Dröge 2011-05-17 09:35:54 +02:00
parent 53ef31718d
commit b4dea3a1d3
2 changed files with 4 additions and 4 deletions

View file

@ -2921,7 +2921,7 @@ static gboolean
gst_structure_is_equal_foreach (GQuark field_id, const GValue * val2,
gpointer data)
{
GstStructure *struct1 = (GstStructure *) data;
const GstStructure *struct1 = (const GstStructure *) data;
const GValue *val1 = gst_structure_id_get_value (struct1, field_id);
if (G_UNLIKELY (val1 == NULL))
@ -2946,7 +2946,7 @@ gst_structure_is_equal_foreach (GQuark field_id, const GValue * val2,
**/
gboolean
gst_structure_is_equal (const GstStructure * structure1,
GstStructure * structure2)
const GstStructure * structure2)
{
g_return_val_if_fail (GST_IS_STRUCTURE (structure1), FALSE);
g_return_val_if_fail (GST_IS_STRUCTURE (structure2), FALSE);
@ -2959,7 +2959,7 @@ gst_structure_is_equal (const GstStructure * structure1,
}
return gst_structure_foreach (structure1, gst_structure_is_equal_foreach,
structure2);
(gpointer) structure2);
}

View file

@ -249,7 +249,7 @@ gboolean gst_structure_fixate_field_nearest_fraction (GstStructu
const gint target_denominator);
gboolean gst_structure_is_equal(const GstStructure *structure1,
GstStructure *structure2);
const GstStructure *structure2);
gboolean gst_structure_can_intersect(const GstStructure *struct1,
const GstStructure *struct2);
GstStructure* gst_structure_intersect (const GstStructure *struct1,