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 /ext/xvid | |
parent | 010789159d7bf274e11f0b4bec5c66543ad1220f (diff) | |
download | gstreamer-plugins-bad-33c2f5fb01b1cb9145751a745cfa2514421fa7b3.tar.gz |
Add -Wwrite-strings
and fix its warnings
Diffstat (limited to 'ext/xvid')
-rw-r--r-- | ext/xvid/gstxvid.c | 4 | ||||
-rw-r--r-- | ext/xvid/gstxvid.h | 16 |
2 files changed, 10 insertions, 10 deletions
diff --git a/ext/xvid/gstxvid.c b/ext/xvid/gstxvid.c index fa5ebdc84..320516923 100644 --- a/ext/xvid/gstxvid.c +++ b/ext/xvid/gstxvid.c @@ -58,10 +58,10 @@ gst_xvid_init (void) return TRUE; } -gchar * +const gchar * gst_xvid_error (int errorcode) { - gchar *error; + const gchar *error; switch (errorcode) { case XVID_ERR_FAIL: diff --git a/ext/xvid/gstxvid.h b/ext/xvid/gstxvid.h index 4dca2c21b..cb28ccb72 100644 --- a/ext/xvid/gstxvid.h +++ b/ext/xvid/gstxvid.h @@ -42,15 +42,15 @@ G_BEGIN_DECLS "green_mask = (int) " G_STRINGIFY (g_mask) ", " \ "blue_mask = (int) " G_STRINGIFY (b_mask) -extern gchar * gst_xvid_error (int errorcode); -extern gboolean gst_xvid_init (void); - -extern gint gst_xvid_structure_to_csp (GstStructure *structure); -extern GstCaps *gst_xvid_csp_to_caps (gint csp, gint w, gint h); -extern gint gst_xvid_image_get_size (gint csp, +extern const gchar *gst_xvid_error (int errorcode); +extern gboolean gst_xvid_init (void); + +extern gint gst_xvid_structure_to_csp (GstStructure *structure); +extern GstCaps * gst_xvid_csp_to_caps (gint csp, gint w, gint h); +extern gint gst_xvid_image_get_size (gint csp, + gint width, gint height); +extern gint gst_xvid_image_fill (xvid_image_t * im, void * ptr, gint csp, gint width, gint height); -extern gint gst_xvid_image_fill (xvid_image_t * im, void * ptr, gint csp, - gint width, gint height); G_END_DECLS |