diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2020-12-20 21:43:45 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2020-12-20 21:43:45 +0300 |
commit | 3d617371af1d1b779cf10d3fec40b17f29a7baf3 (patch) | |
tree | ff5ae62c07716648d8e62c4db34c6b731fbbd2fe /generic/threadshare/src/queue/imp.rs | |
parent | ea6c05e16ccf0875652e2370eef4839ae819bc34 (diff) |
Update for macro renames
Diffstat (limited to 'generic/threadshare/src/queue/imp.rs')
-rw-r--r-- | generic/threadshare/src/queue/imp.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/generic/threadshare/src/queue/imp.rs b/generic/threadshare/src/queue/imp.rs index aba422744..8f0d98c05 100644 --- a/generic/threadshare/src/queue/imp.rs +++ b/generic/threadshare/src/queue/imp.rs @@ -25,7 +25,7 @@ use glib::subclass::prelude::*; use gst::prelude::*; use gst::subclass::prelude::*; -use gst::{gst_debug, gst_element_error, gst_error, gst_error_msg, gst_log, gst_trace}; +use gst::{gst_debug, gst_error, gst_log, gst_trace}; use once_cell::sync::Lazy; @@ -194,7 +194,7 @@ impl PadSinkHandler for QueuePadSinkHandler { if let EventView::FlushStart(..) = event.view() { if let Err(err) = queue.task.flush_start() { gst_error!(CAT, obj: pad.gst_pad(), "FlushStart failed {:?}", err); - gst_element_error!( + gst::element_error!( element, gst::StreamError::Failed, ("Internal data stream error"), @@ -228,7 +228,7 @@ impl PadSinkHandler for QueuePadSinkHandler { if let EventView::FlushStop(..) = event.view() { if let Err(err) = queue.task.flush_stop() { gst_error!(CAT, obj: pad.gst_pad(), "FlushStop failed {:?}", err); - gst_element_error!( + gst::element_error!( element, gst::StreamError::Failed, ("Internal data stream error"), @@ -321,7 +321,7 @@ impl PadSrcHandler for QueuePadSrcHandler { EventView::FlushStop(..) => { if let Err(err) = queue.task.flush_stop() { gst_error!(CAT, obj: pad.gst_pad(), "FlushStop failed {:?}", err); - gst_element_error!( + gst::element_error!( element, gst::StreamError::Failed, ("Internal data stream error"), @@ -442,7 +442,7 @@ impl TaskImpl for QueueTask { } Err(err) => { gst_error!(CAT, obj: &self.element, "Got error {}", err); - gst_element_error!( + gst::element_error!( &self.element, gst::StreamError::Failed, ("Internal data stream error"), @@ -700,7 +700,7 @@ impl Queue { let context = Context::acquire(&settings.context, settings.context_wait).map_err(|err| { - gst_error_msg!( + gst::error_msg!( gst::ResourceError::OpenRead, ["Failed to acquire Context: {}", err] ) @@ -709,7 +709,7 @@ impl Queue { self.task .prepare(QueueTask::new(element, &self.src_pad, dataqueue), context) .map_err(|err| { - gst_error_msg!( + gst::error_msg!( gst::ResourceError::OpenRead, ["Error preparing Task: {:?}", err] ) |