mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-23 02:26:35 +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 {
|
macro_rules! err_flow {
|
||||||
($imp:ident, read, $msg:literal) => {
|
($imp:ident, read, $msg:literal) => {
|
||||||
|err| {
|
|err| {
|
||||||
|
gst::warning!(CAT, imp: $imp, $msg, err);
|
||||||
gst::element_imp_warning!($imp, gst::ResourceError::Read, [$msg, err]);
|
gst::element_imp_warning!($imp, gst::ResourceError::Read, [$msg, err]);
|
||||||
gst::FlowError::Error
|
gst::FlowError::Error
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
($imp:ident, write, $msg:literal) => {
|
($imp:ident, write, $msg:literal) => {
|
||||||
|err| {
|
|err| {
|
||||||
|
gst::warning!(CAT, imp: $imp, $msg, err);
|
||||||
gst::element_imp_warning!($imp, gst::ResourceError::Write, [$msg, err]);
|
gst::element_imp_warning!($imp, gst::ResourceError::Write, [$msg, err]);
|
||||||
gst::FlowError::Error
|
gst::FlowError::Error
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue