From ab9f68c59bf1a8970b4665752f71aa9bb0043d66 Mon Sep 17 00:00:00 2001 From: Hyunjun Ko Date: Thu, 8 Sep 2016 11:57:52 +0900 Subject: dvbsuboverlay: map with READWRITE for overlay blend MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 https://bugzilla.gnome.org/show_bug.cgi?id=771382 --- gst/dvbsuboverlay/gstdvbsuboverlay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/dvbsuboverlay/gstdvbsuboverlay.c b/gst/dvbsuboverlay/gstdvbsuboverlay.c index 3658201c1..6d1a799cd 100644 --- a/gst/dvbsuboverlay/gstdvbsuboverlay.c +++ b/gst/dvbsuboverlay/gstdvbsuboverlay.c @@ -1129,7 +1129,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); } -- cgit v1.2.1