mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 13:08:49 +00:00
textoverlay: Re-render if video size changed
https://bugzilla.gnome.org/show_bug.cgi?id=745554
This commit is contained in:
parent
557c2c9be1
commit
ace35b78ee
1 changed files with 5 additions and 0 deletions
|
@ -848,6 +848,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);
|
||||
|
|
Loading…
Reference in a new issue