mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-26 12:00:32 +00:00
Use gst_element_error!() instead of Element::post_error_message(&gst_error_msg!(...))
This commit is contained in:
parent
000da42b5c
commit
09ffbb3872
2 changed files with 2 additions and 8 deletions
|
@ -168,10 +168,7 @@ impl BaseSinkImpl<BaseSink> for Sink {
|
|||
}
|
||||
(None, _) => {
|
||||
gst_error!(self.cat, obj: sink, "No URI given");
|
||||
sink.post_error_message(&gst_error_msg!(
|
||||
gst::ResourceError::OpenRead,
|
||||
["No URI given"]
|
||||
));
|
||||
gst_element_error!(sink, gst::ResourceError::OpenRead, ["No URI given"]);
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -187,10 +187,7 @@ impl BaseSrcImpl<BaseSrc> for Source {
|
|||
}
|
||||
(None, _) => {
|
||||
gst_error!(self.cat, obj: src, "No URI given");
|
||||
src.post_error_message(&gst_error_msg!(
|
||||
gst::ResourceError::OpenRead,
|
||||
["No URI given"]
|
||||
));
|
||||
gst_element_error!(src, gst::ResourceError::OpenRead, ["No URI given"]);
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue