ext/cairo/gsttextoverlay.c: Fix compiler warning.

Original commit message from CVS:
* ext/cairo/gsttextoverlay.c:
Fix compiler warning.
This commit is contained in:
Stefan Kost 2008-08-26 07:51:42 +00:00
parent 4fbda1f149
commit a035262c8f
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2008-08-26 Stefan Kost <ensonic@users.sf.net>
* ext/cairo/gsttextoverlay.c:
Fix compiler warning.
2008-08-25 David Schleef <ds@schleef.org>
* ext/cairo/gsttextoverlay.c: Fix obvious memleak.

View file

@ -410,9 +410,7 @@ gst_text_overlay_render_text (GstCairoTextOverlay * overlay,
if (textlen < 0)
textlen = strlen (text);
if (overlay->need_render) {
GST_DEBUG ("Rendering text '%s' on cairo RGBA surface", string);
} else {
if (!overlay->need_render) {
GST_DEBUG ("Using previously rendered text.");
g_return_if_fail (overlay->text_fill_image != NULL);
g_return_if_fail (overlay->text_outline_image != NULL);
@ -420,6 +418,7 @@ gst_text_overlay_render_text (GstCairoTextOverlay * overlay,
}
string = g_strndup (text, textlen);
GST_DEBUG ("Rendering text '%s' on cairo RGBA surface", string);
overlay->text_fill_image =
g_realloc (overlay->text_fill_image,