mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-23 10:30:40 +00:00
spotifyaudiosrc: log error if setup() failed
This commit is contained in:
parent
faee72bf5b
commit
53cef60f2c
1 changed files with 1 additions and 0 deletions
|
@ -250,6 +250,7 @@ impl BaseSrcImpl for SpotifyAudioSrc {
|
||||||
|
|
||||||
if let Err(err) = RUNTIME.block_on(async move { self.setup().await }) {
|
if let Err(err) = RUNTIME.block_on(async move { self.setup().await }) {
|
||||||
let details = format!("{:?}", err);
|
let details = format!("{:?}", err);
|
||||||
|
gst_error!(CAT, obj: src, "failed to start: {}", details);
|
||||||
gst::element_error!(src, gst::ResourceError::Settings, [&details]);
|
gst::element_error!(src, gst::ResourceError::Settings, [&details]);
|
||||||
return Err(gst::error_msg!(gst::ResourceError::Settings, [&details]));
|
return Err(gst::error_msg!(gst::ResourceError::Settings, [&details]));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue