aws: log error if sink failed to start

I find it confusing that the element was failing without reporting any
error in its logs.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1638>
This commit is contained in:
Guillaume Desmottes 2024-06-26 09:51:45 +02:00
parent 0ecbd3f953
commit a10577b42c

View file

@ -1028,7 +1028,12 @@ impl URIHandlerImpl for S3Sink {
impl BaseSinkImpl for S3Sink { impl BaseSinkImpl for S3Sink {
fn start(&self) -> Result<(), gst::ErrorMessage> { fn start(&self) -> Result<(), gst::ErrorMessage> {
self.start() let res = self.start();
if let Err(ref err) = res {
gst::error!(CAT, imp: self, "Failed to start: {err}");
}
res
} }
fn stop(&self) -> Result<(), gst::ErrorMessage> { fn stop(&self) -> Result<(), gst::ErrorMessage> {