diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2015-03-03 16:36:20 -0500 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2015-03-03 17:47:29 -0500 |
commit | 0f38f220e72a74a06c2974f3cbccf1d00682d75d (patch) | |
tree | cb4e4935466decb2c0be54c51d882b0aa80c1407 | |
parent | 1bed71c622c66fa47fd6137ec283b73ae7b7cec7 (diff) | |
download | gstreamer-plugins-base-0f38f220e72a74a06c2974f3cbccf1d00682d75d.tar.gz |
textoverlay: Re-render if video size changed
https://bugzilla.gnome.org/show_bug.cgi?id=745554
-rw-r--r-- | ext/pango/gstbasetextoverlay.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/pango/gstbasetextoverlay.c b/ext/pango/gstbasetextoverlay.c index a5f8d7e4b..aff4e3d49 100644 --- a/ext/pango/gstbasetextoverlay.c +++ b/ext/pango/gstbasetextoverlay.c @@ -850,6 +850,11 @@ gst_base_text_overlay_setcaps (GstBaseTextOverlay * overlay, GstCaps * caps) if (!gst_video_info_from_caps (&info, caps)) goto invalid_caps; + /* Render again if size have changed */ + if (GST_VIDEO_INFO_WIDTH (&info) != GST_VIDEO_INFO_WIDTH (&overlay->info) || + GST_VIDEO_INFO_HEIGHT (&info) != GST_VIDEO_INFO_HEIGHT (&overlay->info)) + overlay->need_render = TRUE; + overlay->info = info; overlay->format = GST_VIDEO_INFO_FORMAT (&info); overlay->width = GST_VIDEO_INFO_WIDTH (&info); |