diff --git a/ext/dvdread/dvdreadsrc.c b/ext/dvdread/dvdreadsrc.c index 471b0f7168..940fc55b41 100644 --- a/ext/dvdread/dvdreadsrc.c +++ b/ext/dvdread/dvdreadsrc.c @@ -1632,10 +1632,10 @@ gst_dvd_read_src_uri_get_type (GType type) return GST_URI_SRC; } -static gchar ** +static const gchar *const * gst_dvd_read_src_uri_get_protocols (GType type) { - static gchar *protocols[] = { (gchar *) "dvd", NULL }; + static const gchar *protocols[] = { "dvd", NULL }; return protocols; } diff --git a/gst/realmedia/pnmsrc.c b/gst/realmedia/pnmsrc.c index 64768fccab..a2671af8d4 100644 --- a/gst/realmedia/pnmsrc.c +++ b/gst/realmedia/pnmsrc.c @@ -199,10 +199,10 @@ gst_pnm_src_uri_get_type (GType type) return GST_URI_SRC; } -static gchar ** +static const gchar *const * gst_pnm_src_uri_get_protocols (GType type) { - static gchar *protocols[] = { (gchar *) "pnm", NULL }; + static const gchar *protocols[] = { "pnm", NULL }; return protocols; }