diff options
author | Hyunjun Ko <zzoon@igalia.com> | 2016-09-08 11:57:52 +0900 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2016-09-14 10:55:09 +0200 |
commit | 4ba54b60460ba7f1f455d3a3e1e67aacf23e9c8f (patch) | |
tree | a2a61869e8b965dc74ea1c71e96821bf866f47a9 /gst/dvbsuboverlay | |
parent | fa4786a4019e4a4529ad7d2f87f246c0889f7b38 (diff) | |
download | gstreamer-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.c | 2 |
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); } |