summaryrefslogtreecommitdiff
path: root/gst/dvbsuboverlay
diff options
context:
space:
mode:
authorHyunjun Ko <zzoon@igalia.com>2016-09-08 11:57:52 +0900
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2016-09-14 10:55:09 +0200
commit4ba54b60460ba7f1f455d3a3e1e67aacf23e9c8f (patch)
treea2a61869e8b965dc74ea1c71e96821bf866f47a9 /gst/dvbsuboverlay
parentfa4786a4019e4a4529ad7d2f87f246c0889f7b38 (diff)
downloadgstreamer-plugins-bad-4ba54b60460ba7f1f455d3a3e1e67aacf23e9c8f.tar.gz
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
Diffstat (limited to 'gst/dvbsuboverlay')
-rw-r--r--gst/dvbsuboverlay/gstdvbsuboverlay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/dvbsuboverlay/gstdvbsuboverlay.c b/gst/dvbsuboverlay/gstdvbsuboverlay.c
index 06020034b..0b0062bbe 100644
--- a/gst/dvbsuboverlay/gstdvbsuboverlay.c
+++ b/gst/dvbsuboverlay/gstdvbsuboverlay.c
@@ -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);
}