mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
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:
parent
fa4786a401
commit
4ba54b6046
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue