forked from mirrors/gstreamer-rs
Remove redundant prelude imports
When importing the prelude of a crate like `gst` the `glib` prelude is provided too. Shedding these imports saves quite a few lines and adheres to keeping it simple; we're not reexporting base/parent preludes for no reason :)
This commit is contained in:
parent
e6a81edb3c
commit
f89e840d27
26 changed files with 0 additions and 35 deletions
|
@ -14,7 +14,6 @@
|
||||||
|
|
||||||
use gst::element_error;
|
use gst::element_error;
|
||||||
use gst::element_warning;
|
use gst::element_warning;
|
||||||
use gst::prelude::*;
|
|
||||||
|
|
||||||
use gst_pbutils::prelude::*;
|
use gst_pbutils::prelude::*;
|
||||||
|
|
||||||
|
|
|
@ -27,8 +27,6 @@ void main () {
|
||||||
|
|
||||||
mod mirror {
|
mod mirror {
|
||||||
use super::{gl, FRAGMENT_SHADER};
|
use super::{gl, FRAGMENT_SHADER};
|
||||||
use gst::subclass::prelude::*;
|
|
||||||
use gst_base::subclass::prelude::*;
|
|
||||||
use gst_base::subclass::BaseTransformMode;
|
use gst_base::subclass::BaseTransformMode;
|
||||||
use gst_gl::prelude::*;
|
use gst_gl::prelude::*;
|
||||||
use gst_gl::subclass::prelude::*;
|
use gst_gl::subclass::prelude::*;
|
||||||
|
|
|
@ -17,8 +17,6 @@
|
||||||
// {videotestsrc} - {xvimagesink(on linux)}
|
// {videotestsrc} - {xvimagesink(on linux)}
|
||||||
// {videotestsrc} - {glimagesink(on mac)}
|
// {videotestsrc} - {glimagesink(on mac)}
|
||||||
|
|
||||||
use gst::prelude::*;
|
|
||||||
|
|
||||||
use gst_video::prelude::*;
|
use gst_video::prelude::*;
|
||||||
|
|
||||||
use gio::prelude::*;
|
use gio::prelude::*;
|
||||||
|
|
|
@ -78,7 +78,6 @@ fn main_loop() -> Result<(), Error> {
|
||||||
mod media_factory {
|
mod media_factory {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
use glib::subclass::prelude::*;
|
|
||||||
use gst_rtsp_server::subclass::prelude::*;
|
use gst_rtsp_server::subclass::prelude::*;
|
||||||
|
|
||||||
// In the imp submodule we include the actual implementation
|
// In the imp submodule we include the actual implementation
|
||||||
|
@ -160,7 +159,6 @@ mod media_factory {
|
||||||
|
|
||||||
// Our custom media subclass that adds a custom attribute to the SDP returned by DESCRIBE
|
// Our custom media subclass that adds a custom attribute to the SDP returned by DESCRIBE
|
||||||
mod media {
|
mod media {
|
||||||
use glib::subclass::prelude::*;
|
|
||||||
use gst_rtsp_server::subclass::prelude::*;
|
use gst_rtsp_server::subclass::prelude::*;
|
||||||
|
|
||||||
// In the imp submodule we include the actual implementation
|
// In the imp submodule we include the actual implementation
|
||||||
|
@ -217,7 +215,6 @@ mod media {
|
||||||
mod server {
|
mod server {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
use glib::subclass::prelude::*;
|
|
||||||
use gst_rtsp_server::subclass::prelude::*;
|
use gst_rtsp_server::subclass::prelude::*;
|
||||||
|
|
||||||
// In the imp submodule we include the actual implementation
|
// In the imp submodule we include the actual implementation
|
||||||
|
@ -282,7 +279,6 @@ mod server {
|
||||||
|
|
||||||
// Our custom RTSP client subclass.
|
// Our custom RTSP client subclass.
|
||||||
mod client {
|
mod client {
|
||||||
use glib::subclass::prelude::*;
|
|
||||||
use gst_rtsp_server::subclass::prelude::*;
|
use gst_rtsp_server::subclass::prelude::*;
|
||||||
|
|
||||||
// In the imp submodule we include the actual implementation
|
// In the imp submodule we include the actual implementation
|
||||||
|
|
|
@ -19,8 +19,6 @@ mod examples_common;
|
||||||
mod fir_filter {
|
mod fir_filter {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
use glib::subclass::prelude::*;
|
|
||||||
use gst::subclass::prelude::*;
|
|
||||||
use gst_base::subclass::prelude::*;
|
use gst_base::subclass::prelude::*;
|
||||||
|
|
||||||
use byte_slice_cast::*;
|
use byte_slice_cast::*;
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
// {videotestsrc} - { glsinkbin }
|
// {videotestsrc} - { glsinkbin }
|
||||||
|
|
||||||
use gst::element_error;
|
use gst::element_error;
|
||||||
use gst::prelude::*;
|
|
||||||
|
|
||||||
use gst_gl::prelude::*;
|
use gst_gl::prelude::*;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
// Take a look at the license at the top of the repository in the LICENSE file.
|
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||||
|
|
||||||
use glib::subclass::prelude::*;
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
// Take a look at the license at the top of the repository in the LICENSE file.
|
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||||
|
|
||||||
use glib::subclass::prelude::*;
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
// Take a look at the license at the top of the repository in the LICENSE file.
|
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||||
|
|
||||||
use glib::prelude::*;
|
use glib::prelude::*;
|
||||||
use glib::subclass::prelude::*;
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
use gst::LoggableError;
|
use gst::LoggableError;
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
use std::mem;
|
use std::mem;
|
||||||
|
|
||||||
use glib::prelude::*;
|
use glib::prelude::*;
|
||||||
use glib::subclass::prelude::*;
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
use gst::LoggableError;
|
use gst::LoggableError;
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
// Take a look at the license at the top of the repository in the LICENSE file.
|
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||||
|
|
||||||
use glib::prelude::*;
|
use glib::prelude::*;
|
||||||
use glib::subclass::prelude::*;
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
// Take a look at the license at the top of the repository in the LICENSE file.
|
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||||
|
|
||||||
use glib::prelude::*;
|
use glib::prelude::*;
|
||||||
use glib::subclass::prelude::*;
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
|
|
|
@ -5,7 +5,6 @@ use std::mem;
|
||||||
|
|
||||||
use crate::prelude::*;
|
use crate::prelude::*;
|
||||||
|
|
||||||
use glib::subclass::prelude::*;
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
// Take a look at the license at the top of the repository in the LICENSE file.
|
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||||
|
|
||||||
use glib::prelude::*;
|
use glib::prelude::*;
|
||||||
use glib::subclass::prelude::*;
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
// Take a look at the license at the top of the repository in the LICENSE file.
|
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||||
|
|
||||||
use glib::prelude::*;
|
use glib::prelude::*;
|
||||||
use glib::subclass::prelude::*;
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
use crate::prelude::*;
|
use crate::prelude::*;
|
||||||
|
|
||||||
use glib::subclass::prelude::*;
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
use gst::gst_warning;
|
use gst::gst_warning;
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
// Take a look at the license at the top of the repository in the LICENSE file.
|
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||||
|
|
||||||
use crate::TestClock;
|
use crate::TestClock;
|
||||||
use glib::prelude::*;
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
use std::marker::PhantomData;
|
use std::marker::PhantomData;
|
||||||
|
|
|
@ -5,7 +5,6 @@ use crate::prelude::*;
|
||||||
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
use gst::subclass::prelude::*;
|
|
||||||
use gst::{result_from_gboolean, Caps, LoggableError, CAT_RUST};
|
use gst::{result_from_gboolean, Caps, LoggableError, CAT_RUST};
|
||||||
use gst_base::subclass::prelude::*;
|
use gst_base::subclass::prelude::*;
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,6 @@ use crate::prelude::*;
|
||||||
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
use gst::subclass::prelude::*;
|
|
||||||
use gst::{result_from_gboolean, Buffer, Caps, LoggableError, PadDirection, CAT_RUST};
|
use gst::{result_from_gboolean, Buffer, Caps, LoggableError, PadDirection, CAT_RUST};
|
||||||
|
|
||||||
use crate::GLBaseFilter;
|
use crate::GLBaseFilter;
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
// Take a look at the license at the top of the repository in the LICENSE file.
|
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||||
|
|
||||||
use glib::prelude::*;
|
|
||||||
use glib::subclass::prelude::*;
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
// Take a look at the license at the top of the repository in the LICENSE file.
|
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||||
|
|
||||||
use glib::prelude::*;
|
|
||||||
use glib::subclass::prelude::*;
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
// Take a look at the license at the top of the repository in the LICENSE file.
|
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||||
|
|
||||||
use glib::prelude::*;
|
use glib::prelude::*;
|
||||||
use glib::subclass::prelude::*;
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
use gst::subclass::prelude::*;
|
|
||||||
use gst_base::subclass::prelude::*;
|
use gst_base::subclass::prelude::*;
|
||||||
|
|
||||||
use crate::VideoSink;
|
use crate::VideoSink;
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
// Take a look at the license at the top of the repository in the LICENSE file.
|
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||||
|
|
||||||
use glib::prelude::*;
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
use std::cmp;
|
use std::cmp;
|
||||||
|
|
|
@ -23,7 +23,6 @@ use crate::StateChangeError;
|
||||||
use crate::StateChangeReturn;
|
use crate::StateChangeReturn;
|
||||||
use crate::StateChangeSuccess;
|
use crate::StateChangeSuccess;
|
||||||
|
|
||||||
use glib::prelude::*;
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
use std::ffi::CStr;
|
use std::ffi::CStr;
|
||||||
|
|
|
@ -16,7 +16,6 @@ use std::num::NonZeroU32;
|
||||||
use std::ops::Deref;
|
use std::ops::Deref;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
use glib::prelude::*;
|
|
||||||
use glib::translate::{
|
use glib::translate::{
|
||||||
from_glib, from_glib_full, from_glib_none, mut_override, IntoGlib, ToGlibPtr,
|
from_glib, from_glib_full, from_glib_none, mut_override, IntoGlib, ToGlibPtr,
|
||||||
};
|
};
|
||||||
|
|
|
@ -6,7 +6,6 @@ mod tutorial5 {
|
||||||
use gdk::prelude::*;
|
use gdk::prelude::*;
|
||||||
use gtk::prelude::*;
|
use gtk::prelude::*;
|
||||||
|
|
||||||
use gst::prelude::*;
|
|
||||||
use gst_video::prelude::*;
|
use gst_video::prelude::*;
|
||||||
|
|
||||||
use std::ops;
|
use std::ops;
|
||||||
|
|
Loading…
Reference in a new issue