mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
basetextoverlay: Fix upstream composition handling
We need to update the render when upstream composition changes or if it was removed. http://bugzilla.gnome.org/show_bug.cgi?id=751157
This commit is contained in:
parent
d10959fd36
commit
a2e4ccc38b
1 changed files with 8 additions and 2 deletions
|
@ -2406,8 +2406,14 @@ gst_base_text_overlay_video_chain (GstPad * pad, GstObject * parent,
|
|||
|
||||
composition_meta = gst_buffer_get_video_overlay_composition_meta (buffer);
|
||||
if (composition_meta) {
|
||||
GST_DEBUG ("GstVideoOverlayCompositionMeta found.");
|
||||
overlay->upstream_composition = composition_meta->overlay;
|
||||
if (overlay->upstream_composition != composition_meta->overlay) {
|
||||
GST_DEBUG ("GstVideoOverlayCompositionMeta found.");
|
||||
overlay->upstream_composition = composition_meta->overlay;
|
||||
overlay->need_render = TRUE;
|
||||
}
|
||||
} else if (overlay->upstream_composition != NULL) {
|
||||
overlay->upstream_composition = NULL;
|
||||
overlay->need_render = TRUE;
|
||||
}
|
||||
|
||||
klass = GST_BASE_TEXT_OVERLAY_GET_CLASS (overlay);
|
||||
|
|
Loading…
Reference in a new issue