Use gst_element_error!() instead of Element::post_error_message(&gst_error_msg!(...))

This commit is contained in:
Sebastian Dröge 2017-12-22 20:42:32 +02:00
parent 000da42b5c
commit 09ffbb3872
2 changed files with 2 additions and 8 deletions

View file

@ -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;
}
};

View file

@ -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;
}
};