Fix compilation after glib bindings changes

loggable_error! can now expand variables and we no longer need
the format! on our side.

https://github.com/gtk-rs/gtk-rs-core/pull/1210

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1366>
This commit is contained in:
Jordan Petridis 2023-10-22 01:19:27 +03:00
parent 895ee1d00b
commit a2d7f42138

View file

@ -1581,7 +1581,7 @@ impl TranslateSrcPad {
let elem = self.parent(); let elem = self.parent();
let _enter = RUNTIME.enter(); let _enter = RUNTIME.enter();
let mut pad_task = futures::executor::block_on(TranslationPadTask::try_new(self, elem)) let mut pad_task = futures::executor::block_on(TranslationPadTask::try_new(self, elem))
.map_err(|err| gst::loggable_error!(CAT, format!("Failed to start pad task {err}")))?; .map_err(|err| gst::loggable_error!(CAT, "Failed to start pad task {err}"))?;
let imp = self.ref_counted(); let imp = self.ref_counted();
let res = self.obj().start_task(move || { let res = self.obj().start_task(move || {