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:
Philippe Normand 2022-06-30 17:32:12 +01:00 committed by Arun Raghavan
parent 8e90abfebb
commit d867ef9dee

View file

@ -305,7 +305,6 @@ impl ObjectImpl for RoundedCorners {
let border_radius = value.get().expect("type checked upstream");
if settings.border_radius_px != border_radius {
settings.changed = true;
settings.border_radius_px = border_radius;
gst::info!(
CAT,
obj: obj,
@ -313,6 +312,7 @@ impl ObjectImpl for RoundedCorners {
settings.border_radius_px,
border_radius
);
settings.border_radius_px = border_radius;
obj.reconfigure_src();
}
}