mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +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/7230>
This commit is contained in:
parent
6e7300d2a8
commit
a82151b84f
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;
|
priv->valid = TRUE;
|
||||||
else
|
else
|
||||||
priv->valid = FALSE;
|
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 *
|
static GstVideoOverlayComposition *
|
||||||
|
|
Loading…
Reference in a new issue