rtp: av1depay: Also log warnings on errors

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1621>
This commit is contained in:
Sebastian Dröge 2024-06-13 14:35:04 +03:00
parent c821130947
commit c07abf04f0

View file

@ -10,12 +10,14 @@
macro_rules! err_flow {
($imp:ident, read, $msg:literal) => {
|err| {
gst::warning!(CAT, imp: $imp, $msg, err);
gst::element_imp_warning!($imp, gst::ResourceError::Read, [$msg, err]);
gst::FlowError::Error
}
};
($imp:ident, write, $msg:literal) => {
|err| {
gst::warning!(CAT, imp: $imp, $msg, err);
gst::element_imp_warning!($imp, gst::ResourceError::Write, [$msg, err]);
gst::FlowError::Error
}