Commit a2e4ccc3 authored by Nicolas Dufresne's avatar Nicolas Dufresne

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
parent d10959fd
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment