Index: ext/pango/gsttextoverlay.c
===================================================================
RCS file: /cvs/gstreamer/gst-plugins-base/ext/pango/gsttextoverlay.c,v
retrieving revision 1.39
diff -u -r1.39 gsttextoverlay.c
--- ext/pango/gsttextoverlay.c	1 Apr 2006 11:41:13 -0000	1.39
+++ ext/pango/gsttextoverlay.c	22 Apr 2006 16:23:06 -0000
@@ -436,6 +436,7 @@
 
   overlay->layout =
       pango_layout_new (GST_TEXT_OVERLAY_GET_CLASS (overlay)->pango_context);
+  pango_layout_set_alignment(overlay->layout, PANGO_ALIGN_CENTER);
   memset (&overlay->bitmap, 0, sizeof (overlay->bitmap));
 
   overlay->halign = DEFAULT_PROP_HALIGNMENT;
@@ -950,7 +951,7 @@
   } else {                      /* empty string */
     string = g_strdup (" ");
   }
-  g_strdelimit (string, "\n\r\t", ' ');
+  g_strdelimit (string, "\r\t", ' ');
   textlen = strlen (string);
 
   /* FIXME: should we check for UTF-8 here? */
