diff --git a/examples/src/bin/appsink.rs b/examples/src/bin/appsink.rs index 885536f1a..668bc7747 100644 --- a/examples/src/bin/appsink.rs +++ b/examples/src/bin/appsink.rs @@ -21,7 +21,6 @@ extern crate glib; extern crate byte_slice_cast; use byte_slice_cast::*; -use std::error::Error as StdError; use std::i16; use std::i32; @@ -167,7 +166,7 @@ fn main_loop(pipeline: gst::Pipeline) -> Result<(), Error> { .get_src() .map(|s| String::from(s.get_path_string())) .unwrap_or_else(|| String::from("None")), - error: err.get_error().description().into(), + error: err.get_error().to_string(), debug: err.get_debug(), cause: err.get_error(), } diff --git a/examples/src/bin/appsrc.rs b/examples/src/bin/appsrc.rs index 4af3b6e7a..319c24e0f 100644 --- a/examples/src/bin/appsrc.rs +++ b/examples/src/bin/appsrc.rs @@ -17,8 +17,6 @@ extern crate gstreamer_video as gst_video; extern crate glib; -use std::error::Error as StdError; - extern crate failure; use failure::Error; @@ -159,7 +157,7 @@ fn main_loop(pipeline: gst::Pipeline) -> Result<(), Error> { .get_src() .map(|s| String::from(s.get_path_string())) .unwrap_or_else(|| String::from("None")), - error: err.get_error().description().into(), + error: err.get_error().to_string(), debug: err.get_debug(), cause: err.get_error(), } diff --git a/examples/src/bin/decodebin.rs b/examples/src/bin/decodebin.rs index b505eb41d..24c4179a9 100644 --- a/examples/src/bin/decodebin.rs +++ b/examples/src/bin/decodebin.rs @@ -39,7 +39,6 @@ extern crate glib; use glib::subclass::prelude::*; use std::env; -use std::error::Error as StdError; #[cfg(feature = "v1_10")] use std::sync::{Arc, Mutex}; @@ -273,7 +272,7 @@ fn example_main() -> Result<(), Error> { .get_src() .map(|s| String::from(s.get_path_string())) .unwrap_or_else(|| String::from("None")), - error: err.get_error().description().into(), + error: err.get_error().to_string(), debug: err.get_debug(), cause: err.get_error(), } diff --git a/examples/src/bin/encodebin.rs b/examples/src/bin/encodebin.rs index 29a209e2e..de35327e9 100644 --- a/examples/src/bin/encodebin.rs +++ b/examples/src/bin/encodebin.rs @@ -25,7 +25,6 @@ extern crate glib; use glib::subclass::prelude::*; use std::env; -use std::error::Error as StdError; #[cfg(feature = "v1_10")] use std::sync::{Arc, Mutex}; @@ -303,7 +302,7 @@ fn example_main() -> Result<(), Error> { .get_src() .map(|s| String::from(s.get_path_string())) .unwrap_or_else(|| String::from("None")), - error: err.get_error().description().into(), + error: err.get_error().to_string(), debug: err.get_debug(), cause: err.get_error(), } diff --git a/examples/src/bin/glupload.rs b/examples/src/bin/glupload.rs index 05a83160b..5d911406a 100644 --- a/examples/src/bin/glupload.rs +++ b/examples/src/bin/glupload.rs @@ -15,7 +15,6 @@ extern crate gstreamer_video as gst_video; extern crate glib; -use std::error::Error as StdError; use std::ffi::CStr; use std::mem; use std::ptr; @@ -593,7 +592,7 @@ impl App { .get_src() .map(|s| String::from(s.get_path_string())) .unwrap_or_else(|| String::from("None")), - error: err.get_error().description().into(), + error: err.get_error().to_string(), debug: err.get_debug(), cause: err.get_error(), } diff --git a/examples/src/bin/pango-cairo.rs b/examples/src/bin/pango-cairo.rs index 64daad592..e1850621f 100644 --- a/examples/src/bin/pango-cairo.rs +++ b/examples/src/bin/pango-cairo.rs @@ -22,7 +22,6 @@ extern crate pango; use pango::prelude::*; extern crate pangocairo; -use std::error::Error as StdError; use std::ops; use std::sync::{Arc, Mutex}; @@ -254,7 +253,7 @@ fn main_loop(pipeline: gst::Pipeline) -> Result<(), Error> { .get_src() .map(|s| String::from(s.get_path_string())) .unwrap_or_else(|| String::from("None")), - error: err.get_error().description().into(), + error: err.get_error().to_string(), debug: err.get_debug(), cause: err.get_error(), } diff --git a/examples/src/bin/rtpfecclient.rs b/examples/src/bin/rtpfecclient.rs index b1ca759f6..a88f804e5 100644 --- a/examples/src/bin/rtpfecclient.rs +++ b/examples/src/bin/rtpfecclient.rs @@ -5,7 +5,6 @@ use gst::prelude::*; extern crate glib; use std::env; -use std::error::Error as StdError; #[path = "../examples-common.rs"] mod examples_common; @@ -274,7 +273,7 @@ fn example_main() -> Result<(), Error> { .get_src() .map(|s| String::from(s.get_path_string())) .unwrap_or_else(|| String::from("None")), - error: err.get_error().description().into(), + error: err.get_error().to_string(), debug: err.get_debug(), cause: err.get_error(), } diff --git a/examples/src/bin/rtpfecserver.rs b/examples/src/bin/rtpfecserver.rs index a5622f181..e3dd0f903 100644 --- a/examples/src/bin/rtpfecserver.rs +++ b/examples/src/bin/rtpfecserver.rs @@ -4,8 +4,6 @@ use gst::prelude::*; extern crate glib; -use std::error::Error as StdError; - #[path = "../examples-common.rs"] mod examples_common; @@ -197,7 +195,7 @@ fn example_main() -> Result<(), Error> { .get_src() .map(|s| String::from(s.get_path_string())) .unwrap_or_else(|| String::from("None")), - error: err.get_error().description().into(), + error: err.get_error().to_string(), debug: err.get_debug(), cause: err.get_error(), } diff --git a/examples/src/bin/subclass.rs b/examples/src/bin/subclass.rs index 61473a548..eeb5b347f 100644 --- a/examples/src/bin/subclass.rs +++ b/examples/src/bin/subclass.rs @@ -13,8 +13,6 @@ extern crate glib; extern crate gstreamer as gst; use gst::prelude::*; -use std::error::Error as StdError; - extern crate failure; use failure::Error; @@ -384,7 +382,7 @@ fn main_loop(pipeline: gst::Pipeline) -> Result<(), Error> { .get_src() .map(|s| String::from(s.get_path_string())) .unwrap_or_else(|| String::from("None")), - error: err.get_error().description().into(), + error: err.get_error().to_string(), debug: err.get_debug(), cause: err.get_error(), } diff --git a/examples/src/bin/tagsetter.rs b/examples/src/bin/tagsetter.rs index 0904ef453..ce566f26b 100644 --- a/examples/src/bin/tagsetter.rs +++ b/examples/src/bin/tagsetter.rs @@ -23,8 +23,6 @@ use gst::prelude::*; extern crate glib; -use std::error::Error as StdError; - extern crate failure; use failure::Error; @@ -108,7 +106,7 @@ fn example_main() -> Result<(), Error> { .map(|s| s.get_path_string()) .unwrap_or_else(|| "None".into()) .to_string(), - error: err.get_error().description().into(), + error: err.get_error().to_string(), debug: err.get_debug(), cause: err.get_error(), } diff --git a/examples/src/bin/transmux.rs b/examples/src/bin/transmux.rs index e470e12ce..bb3f146ae 100644 --- a/examples/src/bin/transmux.rs +++ b/examples/src/bin/transmux.rs @@ -24,7 +24,6 @@ use gst::prelude::*; extern crate glib; use std::env; -use std::error::Error as StdError; extern crate failure; use failure::Error; @@ -174,7 +173,7 @@ fn example_main() -> Result<(), Error> { .get_src() .map(|s| String::from(s.get_path_string())) .unwrap_or_else(|| String::from("None")), - error: err.get_error().description().into(), + error: err.get_error().to_string(), debug: err.get_debug(), cause: err.get_error(), }