dvbsuboverlay: Do blending calls when appropriate

This gives us actually shown subtitles, however with bugs in the
current blitting code, resulting in very transparent subtitles.
This commit is contained in:
Mart Raudsepp 2010-12-01 07:20:07 +02:00 committed by Edward Hervey
parent 84b52f6eb4
commit 21abf9c4a8

View file

@ -1130,6 +1130,12 @@ gst_dvbsub_overlay_chain_video (GstPad * pad, GstBuffer * buffer)
overlay->current_subtitle = NULL;
}
/* Now render it */
if (overlay->current_subtitle && overlay->current_subtitle->num_rects > 0) {
buffer = gst_buffer_make_writable (buffer);
blit_i420 (overlay, overlay->current_subtitle, buffer);
}
ret = gst_pad_push (overlay->srcpad, buffer);
return ret;