mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-22 18:16:28 +00:00
rtp: av1depay: Also log warnings on errors
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1612>
This commit is contained in:
parent
93c9821cba
commit
477855789d
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