+2007-11-15 David Schleef <ds@schleef.org>
+
+ * ext/cairo/gsttextoverlay.c:
+ Change strcasecmp() to g_strcasecmp(). Fixes #497292.
+
2007-11-15 Wim Taymans <wim.taymans@gmail.com>
Patch by: Jordi Jaen Pallares <jordijp at gmail dot com>
#include <config.h>
#endif
#include <string.h>
-#include <strings.h>
#include <gst/video/video.h>
#include "gsttextoverlay.h"
case ARG_VALIGN:{
const gchar *s = g_value_get_string (value);
- if (strcasecmp (s, "baseline") == 0)
+ if (g_strcasecmp (s, "baseline") == 0)
overlay->valign = GST_CAIRO_TEXT_OVERLAY_VALIGN_BASELINE;
- else if (strcasecmp (s, "bottom") == 0)
+ else if (g_strcasecmp (s, "bottom") == 0)
overlay->valign = GST_CAIRO_TEXT_OVERLAY_VALIGN_BOTTOM;
- else if (strcasecmp (s, "top") == 0)
+ else if (g_strcasecmp (s, "top") == 0)
overlay->valign = GST_CAIRO_TEXT_OVERLAY_VALIGN_TOP;
else
g_warning ("Invalid 'valign' property value: %s", s);
case ARG_HALIGN:{
const gchar *s = g_value_get_string (value);
- if (strcasecmp (s, "left") == 0)
+ if (g_strcasecmp (s, "left") == 0)
overlay->halign = GST_CAIRO_TEXT_OVERLAY_HALIGN_LEFT;
- else if (strcasecmp (s, "right") == 0)
+ else if (g_strcasecmp (s, "right") == 0)
overlay->halign = GST_CAIRO_TEXT_OVERLAY_HALIGN_RIGHT;
- else if (strcasecmp (s, "center") == 0)
+ else if (g_strcasecmp (s, "center") == 0)
overlay->halign = GST_CAIRO_TEXT_OVERLAY_HALIGN_CENTER;
else
g_warning ("Invalid 'halign' property value: %s", s);