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
@ -1130,6 +1130,12 @@ gst_dvbsub_overlay_chain_video (GstPad * pad, GstBuffer * buffer)
|
|||||||
overlay->current_subtitle = NULL;
|
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);
|
ret = gst_pad_push (overlay->srcpad, buffer);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user