[gst-cvs] gst-plugins-base: textoverlay: make buffer writable

Wim Taymans wtay at kemper.freedesktop.org
Thu Aug 6 03:01:52 PDT 2009


Module: gst-plugins-base
Branch: master
Commit: caf3d8d480dc096051bb199c12abea8857a3363a
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=caf3d8d480dc096051bb199c12abea8857a3363a

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Thu Aug  6 12:01:10 2009 +0200

textoverlay: make buffer writable

Make the input buffer writable before changing its contents.

---

 ext/pango/gsttextoverlay.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ext/pango/gsttextoverlay.c b/ext/pango/gsttextoverlay.c
index 49d0b62..dd9c8fc 100644
--- a/ext/pango/gsttextoverlay.c
+++ b/ext/pango/gsttextoverlay.c
@@ -1561,6 +1561,8 @@ gst_text_overlay_push_frame (GstTextOverlay * overlay, GstBuffer * video_frame)
   width = overlay->image_width;
   height = overlay->image_height;
 
+  video_frame = gst_buffer_make_writable (video_frame);
+
   if (overlay->use_vertical_render)
     halign = GST_TEXT_OVERLAY_HALIGN_RIGHT;
   else





More information about the Gstreamer-commits mailing list