mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-06 14:32:31 +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);
|
composition_meta = gst_buffer_get_video_overlay_composition_meta (buffer);
|
||||||
if (composition_meta) {
|
if (composition_meta) {
|
||||||
|
if (overlay->upstream_composition != composition_meta->overlay) {
|
||||||
GST_DEBUG ("GstVideoOverlayCompositionMeta found.");
|
GST_DEBUG ("GstVideoOverlayCompositionMeta found.");
|
||||||
overlay->upstream_composition = composition_meta->overlay;
|
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);
|
klass = GST_BASE_TEXT_OVERLAY_GET_CLASS (overlay);
|
||||||
|
|
Loading…
Reference in a new issue