mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-26 13:31:00 +00:00
roundedcorners: Logging improvement
Cache the new border radius only after logging it, otherwise the same value appears as old and new.
This commit is contained in:
parent
8e90abfebb
commit
d867ef9dee
1 changed files with 1 additions and 1 deletions
|
@ -305,7 +305,6 @@ impl ObjectImpl for RoundedCorners {
|
||||||
let border_radius = value.get().expect("type checked upstream");
|
let border_radius = value.get().expect("type checked upstream");
|
||||||
if settings.border_radius_px != border_radius {
|
if settings.border_radius_px != border_radius {
|
||||||
settings.changed = true;
|
settings.changed = true;
|
||||||
settings.border_radius_px = border_radius;
|
|
||||||
gst::info!(
|
gst::info!(
|
||||||
CAT,
|
CAT,
|
||||||
obj: obj,
|
obj: obj,
|
||||||
|
@ -313,6 +312,7 @@ impl ObjectImpl for RoundedCorners {
|
||||||
settings.border_radius_px,
|
settings.border_radius_px,
|
||||||
border_radius
|
border_radius
|
||||||
);
|
);
|
||||||
|
settings.border_radius_px = border_radius;
|
||||||
obj.reconfigure_src();
|
obj.reconfigure_src();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue