mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
3c53da5e09
commit
e4407d4599
3 changed files with 3 additions and 3 deletions
|
@ -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++) {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue