divx: add const to fix compiler warnings
authorStefan Kost <ensonic@users.sf.net>
Thu, 25 Mar 2010 21:48:09 +0000 (23:48 +0200)
committerStefan Kost <ensonic@users.sf.net>
Thu, 25 Mar 2010 21:48:09 +0000 (23:48 +0200)
ext/divx/gstdivxdec.c
ext/divx/gstdivxenc.c

index 2e9543c..2b66256 100644 (file)
@@ -71,10 +71,10 @@ static GstElementClass *parent_class = NULL;
 /* static guint gst_divxdec_signals[LAST_SIGNAL] = { 0 }; */
 
 
-static gchar *
+static const gchar *
 gst_divxdec_error (int errorcode)
 {
-  gchar *error;
+  const gchar *error;
 
   switch (errorcode) {
     case DEC_OK:
index 0fab155..0fa43f4 100644 (file)
@@ -78,10 +78,10 @@ static GstElementClass *parent_class = NULL;
 static guint gst_divxenc_signals[LAST_SIGNAL] = { 0 };
 
 
-static gchar *
+static const gchar *
 gst_divxenc_error (int errorcode)
 {
-  gchar *error;
+  const gchar *error;
 
   switch (errorcode) {
     case ENC_BUFFER: