dvbsuboverlay: map with READWRITE for overlay blend

Just as in basetextoverlay [1], the frame to blend with the subtitles overlay
should be mapped with flags GST_MAP_READWRITE, because
gst_video_overlay_composition_blend() does both operations.

1. https://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=1396f804

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>

https://bugzilla.gnome.org/show_bug.cgi?id=771382
This commit is contained in:
Hyunjun Ko 2016-09-08 11:57:52 +09:00 committed by Víctor Manuel Jáquez Leal
parent fa4786a401
commit 4ba54b6046

View file

@ -1128,7 +1128,7 @@ gst_dvbsub_overlay_chain_video (GstPad * pad, GstObject * parent,
overlay->current_comp);
} else {
GST_DEBUG_OBJECT (overlay, "Blending overlay image to video buffer");
gst_video_frame_map (&frame, &overlay->info, buffer, GST_MAP_WRITE);
gst_video_frame_map (&frame, &overlay->info, buffer, GST_MAP_READWRITE);
gst_video_overlay_composition_blend (overlay->current_comp, &frame);
gst_video_frame_unmap (&frame);
}