From 33c2f5fb01b1cb9145751a745cfa2514421fa7b3 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 22 Mar 2010 13:16:33 +0100 Subject: Add -Wwrite-strings and fix its warnings --- ext/xvid/gstxvid.c | 4 ++-- ext/xvid/gstxvid.h | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'ext/xvid') 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 -- cgit v1.2.1