mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-02 14:20:06 +00:00
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:
parent
84b52f6eb4
commit
21abf9c4a8
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue