mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 19:11:06 +00:00
Clean up imports a bit
This commit is contained in:
parent
5b98f9def0
commit
65b77971ef
2 changed files with 6 additions and 6 deletions
|
@ -2,8 +2,8 @@
|
||||||
extern crate gstreamer as gst;
|
extern crate gstreamer as gst;
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
|
|
||||||
extern crate gstreamer_pbutils as pbutils;
|
extern crate gstreamer_pbutils as gst_pbutils;
|
||||||
use pbutils::EncodingProfileBuilder;
|
use gst_pbutils::prelude::*;
|
||||||
|
|
||||||
extern crate glib;
|
extern crate glib;
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ struct ErrorMessage {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn configure_encodebin(encodebin: &gst::Element) -> Result<(), Error> {
|
fn configure_encodebin(encodebin: &gst::Element) -> Result<(), Error> {
|
||||||
let audio_profile = pbutils::EncodingAudioProfileBuilder::new()
|
let audio_profile = gst_pbutils::EncodingAudioProfileBuilder::new()
|
||||||
.format(&gst::Caps::new_simple(
|
.format(&gst::Caps::new_simple(
|
||||||
"audio/x-vorbis",
|
"audio/x-vorbis",
|
||||||
&[],
|
&[],
|
||||||
|
@ -44,7 +44,7 @@ fn configure_encodebin(encodebin: &gst::Element) -> Result<(), Error> {
|
||||||
.presence(0)
|
.presence(0)
|
||||||
.build()?;
|
.build()?;
|
||||||
|
|
||||||
let video_profile = pbutils::EncodingVideoProfileBuilder::new()
|
let video_profile = gst_pbutils::EncodingVideoProfileBuilder::new()
|
||||||
.format(&gst::Caps::new_simple(
|
.format(&gst::Caps::new_simple(
|
||||||
"video/x-theora",
|
"video/x-theora",
|
||||||
&[],
|
&[],
|
||||||
|
@ -52,7 +52,7 @@ fn configure_encodebin(encodebin: &gst::Element) -> Result<(), Error> {
|
||||||
.presence(0)
|
.presence(0)
|
||||||
.build()?;
|
.build()?;
|
||||||
|
|
||||||
let container_profile = pbutils::EncodingContainerProfileBuilder::new()
|
let container_profile = gst_pbutils::EncodingContainerProfileBuilder::new()
|
||||||
.name("container")
|
.name("container")
|
||||||
.format(&gst::Caps::new_simple(
|
.format(&gst::Caps::new_simple(
|
||||||
"video/x-matroska",
|
"video/x-matroska",
|
||||||
|
|
|
@ -64,6 +64,6 @@ pub mod prelude {
|
||||||
pub use glib::prelude::*;
|
pub use glib::prelude::*;
|
||||||
pub use gst::prelude::*;
|
pub use gst::prelude::*;
|
||||||
|
|
||||||
pub use encoding_profile::EncodingProfileBuilder;
|
|
||||||
pub use auto::traits::*;
|
pub use auto::traits::*;
|
||||||
|
pub use encoding_profile::EncodingProfileBuilder;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue