Commit c4161b3c authored by Benjamin Otte's avatar Benjamin Otte Committed by Tim-Philipp Müller

Add -Wwrite-strings

and fix its warnings
parent 62be9170
......@@ -2817,7 +2817,7 @@ atom_hdlr_set_type (AtomHDLR * hdlr, AtomsContext * context, guint32 comp_type,
}
static void
atom_hdlr_set_name (AtomHDLR * hdlr, char *name)
atom_hdlr_set_name (AtomHDLR * hdlr, const char *name)
{
if (hdlr->name)
g_free (hdlr->name);
......
......@@ -61,9 +61,9 @@ typedef enum _GstQTMuxFormat
typedef struct _GstQTMuxFormatProp
{
GstQTMuxFormat format;
gchar *name;
gchar *long_name;
gchar *type_name;
const gchar *name;
const gchar *long_name;
const gchar *type_name;
GstStaticCaps src_caps;
GstStaticCaps video_sink_caps;
GstStaticCaps audio_sink_caps;
......
......@@ -58,7 +58,7 @@ static GstStaticPadTemplate srcaudiotemplate = GST_STATIC_PAD_TEMPLATE ("src",
/* setup and teardown needs some special handling for muxer */
static GstPad *
setup_src_pad (GstElement * element,
GstStaticPadTemplate * template, GstCaps * caps, gchar * sinkname)
GstStaticPadTemplate * template, GstCaps * caps, const gchar * sinkname)
{
GstPad *srcpad, *sinkpad;
......@@ -111,7 +111,7 @@ teardown_src_pad (GstPad * srcpad)
}
static GstElement *
setup_qtmux (GstStaticPadTemplate * srctemplate, gchar * sinkname)
setup_qtmux (GstStaticPadTemplate * srctemplate, const gchar * sinkname)
{
GstElement *qtmux;
......@@ -126,7 +126,7 @@ setup_qtmux (GstStaticPadTemplate * srctemplate, gchar * sinkname)
}
static void
cleanup_qtmux (GstElement * qtmux, gchar * sinkname)
cleanup_qtmux (GstElement * qtmux, const gchar * sinkname)
{
GST_DEBUG ("cleanup_qtmux");
gst_element_set_state (qtmux, GST_STATE_NULL);
......@@ -139,7 +139,7 @@ cleanup_qtmux (GstElement * qtmux, gchar * sinkname)
}
static void
check_qtmux_pad (GstStaticPadTemplate * srctemplate, gchar * sinkname)
check_qtmux_pad (GstStaticPadTemplate * srctemplate, const gchar * sinkname)
{
GstElement *qtmux;
GstBuffer *inbuffer, *outbuffer;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment