mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
Add -Wwrite-strings
and fix its warnings
This commit is contained in:
parent
9d3fe3cec1
commit
ccd06b6d16
1 changed files with 3 additions and 3 deletions
|
@ -314,7 +314,7 @@ gst_data_uri_src_get_uri_type (void)
|
||||||
static gchar **
|
static gchar **
|
||||||
gst_data_uri_src_get_protocols (void)
|
gst_data_uri_src_get_protocols (void)
|
||||||
{
|
{
|
||||||
static gchar *protocols[] = { "data", 0 };
|
static gchar *protocols[] = { (char *) "data", 0 };
|
||||||
|
|
||||||
return protocols;
|
return protocols;
|
||||||
}
|
}
|
||||||
|
@ -423,8 +423,8 @@ gst_data_uri_src_set_uri (GstURIHandler * handler, const gchar * uri)
|
||||||
gchar *data;
|
gchar *data;
|
||||||
|
|
||||||
data =
|
data =
|
||||||
g_convert_with_fallback (old_data, -1, "UTF-8", charset, "*", &read,
|
g_convert_with_fallback (old_data, -1, "UTF-8", charset, (char *) "*",
|
||||||
&written, NULL);
|
&read, &written, NULL);
|
||||||
g_free (old_data);
|
g_free (old_data);
|
||||||
GST_BUFFER_DATA (src->buffer) = GST_BUFFER_MALLOCDATA (src->buffer) =
|
GST_BUFFER_DATA (src->buffer) = GST_BUFFER_MALLOCDATA (src->buffer) =
|
||||||
(guint8 *) data;
|
(guint8 *) data;
|
||||||
|
|
Loading…
Reference in a new issue