diff options
author | Benjamin Otte <otte@redhat.com> | 2010-03-22 13:16:33 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-03-22 13:16:33 +0100 |
commit | 33c2f5fb01b1cb9145751a745cfa2514421fa7b3 (patch) | |
tree | f8c0318f6d50928ee96ed1e8663a0c0c5fce7d3e /gst/sdp | |
parent | 010789159d7bf274e11f0b4bec5c66543ad1220f (diff) |
Add -Wwrite-strings
and fix its warnings
Diffstat (limited to 'gst/sdp')
-rw-r--r-- | gst/sdp/gstsdpdemux.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gst/sdp/gstsdpdemux.c b/gst/sdp/gstsdpdemux.c index 3f9306e27..47c6e4a60 100644 --- a/gst/sdp/gstsdpdemux.c +++ b/gst/sdp/gstsdpdemux.c @@ -682,8 +682,8 @@ gst_sdp_demux_media_to_caps (gint pt, const GstSDPMedia * media) /* <param>[=<value>] are separated with ';' */ pairs = g_strsplit (p, ";", 0); for (i = 0; pairs[i]; i++) { - gchar *valpos; - gchar *val, *key; + gchar *valpos, *key; + const gchar *val; /* the key may not have a '=', the value can have other '='s */ valpos = strstr (pairs[i], "="); @@ -933,7 +933,8 @@ start_session_failure: static gboolean gst_sdp_demux_stream_configure_udp (GstSDPDemux * demux, GstSDPStream * stream) { - gchar *uri, *name, *destination; + gchar *uri, *name; + const gchar *destination; GstPad *pad; GST_DEBUG_OBJECT (demux, "creating UDP sources for multicast"); |