textoverlay: make buffer writable

Make the input buffer writable before changing its contents.
This commit is contained in:
Wim Taymans 2009-08-06 12:01:10 +02:00
parent 85a08d8dc2
commit caf3d8d480

View 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