Fix some MSVC warnings about const-ness

Some miscellaneous warnings about const-ness, either casting away const
where we know it's safe or removing const where it's not correct.

https://bugzilla.gnome.org/show_bug.cgi?id=774293
This commit is contained in:
Scott D Phillips 2016-11-14 17:02:54 -08:00 committed by Sebastian Dröge
parent 3c53da5e09
commit e4407d4599
3 changed files with 3 additions and 3 deletions

View file

@ -576,7 +576,7 @@ build_huffman_table (GstJpegHuffmanTable * huf_table,
for (i = 0; i < num_entries; i++)
sorted_entries[i] = &entries[i];
qsort (sorted_entries, num_entries, sizeof (sorted_entries[0]),
qsort ((void *) sorted_entries, num_entries, sizeof (sorted_entries[0]),
compare_huffman_table_entry);
for (i = 0, j = 1, n = 0; i < num_entries; i++) {

View file

@ -307,7 +307,7 @@ gst_frei0r_get_property (f0r_instance_t * instance, GstFrei0rFuncTable * ftable,
break;
}
case F0R_PARAM_STRING:{
const gchar *s;
gchar *s;
if (instance)
ftable->get_param_value (instance, &s, prop->prop_idx);

View file

@ -459,7 +459,7 @@ add_text_tag (GstId3v2Tag * id3v2tag, const GstTagList * list,
GST_WARNING ("Empty list for tag %s, skipping", tag);
}
g_free (strings);
g_free ((gchar **) strings);
}
static void