Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/video/gif
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2023-02-13 12:50:57 +0300
committerSebastian Dröge <sebastian@centricular.com>2023-02-13 12:50:57 +0300
commit04e101c605cf93642f3ebc837ec0dbcc9b4e93d0 (patch)
treed3796e85fc308f847dfc1dd032e04d3234c98584 /video/gif
parent034c0f0fd8f9c87bea0bddf50179cbe5257dfe85 (diff)
Optimize various error message / debug message formatting
Directly make use of format strings instead of formatting a string beforehand and then passing it to the macros.
Diffstat (limited to 'video/gif')
-rw-r--r--video/gif/src/gifenc/imp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/gif/src/gifenc/imp.rs b/video/gif/src/gifenc/imp.rs
index 67a19474b..c813a809d 100644
--- a/video/gif/src/gifenc/imp.rs
+++ b/video/gif/src/gifenc/imp.rs
@@ -380,7 +380,7 @@ impl VideoEncoderImpl for GifEnc {
// encode new frame
let context = state.context.as_mut().unwrap();
if let Err(e) = context.write_frame(&gif_frame) {
- gst::element_imp_error!(self, gst::CoreError::Failed, [&e.to_string()]);
+ gst::element_imp_error!(self, gst::CoreError::Failed, ["{e}"]);
return Err(gst::FlowError::Error);
}
}