mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-25 04:51:26 +00:00
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:
parent
c821130947
commit
c07abf04f0
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue