mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
qroverlay: redraw overlay when caps changes
The position needs to be updated as it depends of the video size. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7234>
This commit is contained in:
parent
62c8c8a6cd
commit
eba5405512
1 changed files with 3 additions and 0 deletions
|
@ -131,6 +131,9 @@ gst_base_qr_overlay_caps_changed_cb (GstBaseQROverlay * self, GstCaps * caps,
|
|||
priv->valid = TRUE;
|
||||
else
|
||||
priv->valid = FALSE;
|
||||
|
||||
/* needs to redraw the overlay as its position depends of the video size */
|
||||
gst_mini_object_replace (((GstMiniObject **) & priv->prev_overlay), NULL);
|
||||
}
|
||||
|
||||
static GstVideoOverlayComposition *
|
||||
|
|
Loading…
Reference in a new issue