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

github.com/sdroege/gst-plugin-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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 /audio/spotify/src
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 'audio/spotify/src')
-rw-r--r--audio/spotify/src/spotifyaudiosrc/imp.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/audio/spotify/src/spotifyaudiosrc/imp.rs b/audio/spotify/src/spotifyaudiosrc/imp.rs
index 05f34243..99931387 100644
--- a/audio/spotify/src/spotifyaudiosrc/imp.rs
+++ b/audio/spotify/src/spotifyaudiosrc/imp.rs
@@ -324,9 +324,8 @@ impl PushSrcImpl for SpotifyAudioSrc {
return Err(gst::FlowError::Flushing);
}
Ok(Err(err)) => {
- let details = format!("{err:?}");
- gst::error!(CAT, imp: self, "failed to start: {}", details);
- gst::element_imp_error!(self, gst::ResourceError::Settings, [&details]);
+ gst::error!(CAT, imp: self, "failed to start: {err:?}");
+ gst::element_imp_error!(self, gst::ResourceError::Settings, ["{err:?}"]);
return Err(gst::FlowError::Error);
}
Ok(Ok(_)) => {}