From: Wim Taymans Date: Thu, 6 Aug 2009 10:01:10 +0000 (+0200) Subject: textoverlay: make buffer writable X-Git-Tag: 1.19.3~511^2~9363 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=caf3d8d480dc096051bb199c12abea8857a3363a;p=platform%2Fupstream%2Fgstreamer.git textoverlay: make buffer writable Make the input buffer writable before changing its contents. --- 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