textoverlay: make buffer writable
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 6 Aug 2009 10:01:10 +0000 (12:01 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 6 Aug 2009 10:01:10 +0000 (12:01 +0200)
Make the input buffer writable before changing its contents.

ext/pango/gsttextoverlay.c

index 49d0b62..dd9c8fc 100644 (file)
@@ -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