From 09ffbb3872223d5cb284fecd84e29bca172fea1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 22 Dec 2017 20:42:32 +0200 Subject: [PATCH] Use gst_element_error!() instead of Element::post_error_message(&gst_error_msg!(...)) --- gst-plugin-simple/src/sink.rs | 5 +---- gst-plugin-simple/src/source.rs | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/gst-plugin-simple/src/sink.rs b/gst-plugin-simple/src/sink.rs index dbce6728..5453029c 100644 --- a/gst-plugin-simple/src/sink.rs +++ b/gst-plugin-simple/src/sink.rs @@ -168,10 +168,7 @@ impl BaseSinkImpl 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; } }; diff --git a/gst-plugin-simple/src/source.rs b/gst-plugin-simple/src/source.rs index 92984361..e29b35c9 100644 --- a/gst-plugin-simple/src/source.rs +++ b/gst-plugin-simple/src/source.rs @@ -187,10 +187,7 @@ impl BaseSrcImpl 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; } };