mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-01-03 05:48:43 +00:00
Re-run everything through rustfmt
This commit is contained in:
parent
062403bdac
commit
2cefd9aea6
62 changed files with 116 additions and 119 deletions
|
@ -6,15 +6,15 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use AppSink;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib::source::CallbackGuard;
|
use glib::source::CallbackGuard;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use glib_ffi::gpointer;
|
use glib_ffi::gpointer;
|
||||||
use gst;
|
use gst;
|
||||||
use gst_ffi;
|
use gst_ffi;
|
||||||
use std::ptr;
|
|
||||||
use std::cell::RefCell;
|
use std::cell::RefCell;
|
||||||
|
use std::ptr;
|
||||||
|
use AppSink;
|
||||||
|
|
||||||
pub struct AppSinkCallbacks {
|
pub struct AppSinkCallbacks {
|
||||||
eos: Option<RefCell<Box<FnMut(&AppSink) + Send + 'static>>>,
|
eos: Option<RefCell<Box<FnMut(&AppSink) + Send + 'static>>>,
|
||||||
|
|
|
@ -6,15 +6,15 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use AppSrc;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib::source::CallbackGuard;
|
use glib::source::CallbackGuard;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use glib_ffi::{gboolean, gpointer};
|
use glib_ffi::{gboolean, gpointer};
|
||||||
use gst;
|
use gst;
|
||||||
|
use std::cell::RefCell;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
use std::cell::RefCell;
|
use AppSrc;
|
||||||
|
|
||||||
pub struct AppSrcCallbacks {
|
pub struct AppSrcCallbacks {
|
||||||
need_data: Option<RefCell<Box<FnMut(&AppSrc, u32) + Send + 'static>>>,
|
need_data: Option<RefCell<Box<FnMut(&AppSrc, u32) + Send + 'static>>>,
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use AudioChannelPosition;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
|
use AudioChannelPosition;
|
||||||
|
|
||||||
use std::mem;
|
use std::mem;
|
||||||
|
|
||||||
|
|
|
@ -389,7 +389,7 @@ mod tests {
|
||||||
&info.positions().unwrap(),
|
&info.positions().unwrap(),
|
||||||
&[
|
&[
|
||||||
::AudioChannelPosition::FrontLeft,
|
::AudioChannelPosition::FrontLeft,
|
||||||
::AudioChannelPosition::FrontRight
|
::AudioChannelPosition::FrontRight,
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -408,7 +408,7 @@ mod tests {
|
||||||
&info.positions().unwrap(),
|
&info.positions().unwrap(),
|
||||||
&[
|
&[
|
||||||
::AudioChannelPosition::RearLeft,
|
::AudioChannelPosition::RearLeft,
|
||||||
::AudioChannelPosition::RearRight
|
::AudioChannelPosition::RearRight,
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -435,7 +435,7 @@ mod tests {
|
||||||
&info.positions().unwrap(),
|
&info.positions().unwrap(),
|
||||||
&[
|
&[
|
||||||
::AudioChannelPosition::FrontLeft,
|
::AudioChannelPosition::FrontLeft,
|
||||||
::AudioChannelPosition::FrontRight
|
::AudioChannelPosition::FrontRight,
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use AudioStreamAlign;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
|
use AudioStreamAlign;
|
||||||
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use gst;
|
use gst;
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use Adapter;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use gst;
|
use gst;
|
||||||
use std::io;
|
use std::io;
|
||||||
|
use Adapter;
|
||||||
|
|
||||||
impl Adapter {
|
impl Adapter {
|
||||||
pub fn copy(&self, offset: usize, dest: &mut [u8]) {
|
pub fn copy(&self, offset: usize, dest: &mut [u8]) {
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use BaseSink;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib::IsA;
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
use glib::IsA;
|
||||||
use gst;
|
use gst;
|
||||||
|
use BaseSink;
|
||||||
|
|
||||||
pub trait BaseSinkExtManual {
|
pub trait BaseSinkExtManual {
|
||||||
fn get_segment(&self) -> gst::Segment;
|
fn get_segment(&self) -> gst::Segment;
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use BaseSrc;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib::IsA;
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
use glib::IsA;
|
||||||
use gst;
|
use gst;
|
||||||
|
use BaseSrc;
|
||||||
|
|
||||||
pub trait BaseSrcExtManual {
|
pub trait BaseSrcExtManual {
|
||||||
fn get_segment(&self) -> gst::Segment;
|
fn get_segment(&self) -> gst::Segment;
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use BaseTransform;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib::IsA;
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
use glib::IsA;
|
||||||
use gst;
|
use gst;
|
||||||
|
use BaseTransform;
|
||||||
|
|
||||||
pub trait BaseTransformExtManual {
|
pub trait BaseTransformExtManual {
|
||||||
fn get_segment(&self) -> gst::Segment;
|
fn get_segment(&self) -> gst::Segment;
|
||||||
|
|
|
@ -29,10 +29,7 @@ pub fn type_find_helper_for_data<
|
||||||
let data = data.as_ref();
|
let data = data.as_ref();
|
||||||
let (ptr, len) = (data.as_ptr(), data.len());
|
let (ptr, len) = (data.as_ptr(), data.len());
|
||||||
let ret = from_glib_full(ffi::gst_type_find_helper_for_data(
|
let ret = from_glib_full(ffi::gst_type_find_helper_for_data(
|
||||||
obj.0,
|
obj.0, ptr, len, &mut prob,
|
||||||
ptr,
|
|
||||||
len,
|
|
||||||
&mut prob,
|
|
||||||
));
|
));
|
||||||
(ret, from_glib(prob))
|
(ret, from_glib(prob))
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use NetClientClock;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
|
use NetClientClock;
|
||||||
|
|
||||||
use glib::object::Downcast;
|
use glib::object::Downcast;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use NtpClock;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
|
use NtpClock;
|
||||||
|
|
||||||
use glib::object::Downcast;
|
use glib::object::Downcast;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use PtpClock;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
|
use PtpClock;
|
||||||
|
|
||||||
use glib::object::Downcast;
|
use glib::object::Downcast;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
|
@ -11,12 +11,12 @@ use gst;
|
||||||
|
|
||||||
use auto::Discoverer;
|
use auto::Discoverer;
|
||||||
|
|
||||||
|
use glib::object::Downcast;
|
||||||
|
use glib::signal::connect;
|
||||||
|
use glib::signal::SignalHandlerId;
|
||||||
|
use glib::translate::*;
|
||||||
use glib::IsA;
|
use glib::IsA;
|
||||||
use glib::Value;
|
use glib::Value;
|
||||||
use glib::object::Downcast;
|
|
||||||
use glib::signal::SignalHandlerId;
|
|
||||||
use glib::signal::connect;
|
|
||||||
use glib::translate::*;
|
|
||||||
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib_ffi;
|
use glib_ffi;
|
||||||
|
|
|
@ -6,18 +6,18 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use Player;
|
|
||||||
use PlayerSignalDispatcher;
|
|
||||||
use PlayerVideoRenderer;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib;
|
use glib;
|
||||||
use glib::signal::SignalHandlerId;
|
|
||||||
use glib::signal::connect;
|
use glib::signal::connect;
|
||||||
|
use glib::signal::SignalHandlerId;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use glib_ffi;
|
use glib_ffi;
|
||||||
use gst;
|
use gst;
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
use Player;
|
||||||
|
use PlayerSignalDispatcher;
|
||||||
|
use PlayerVideoRenderer;
|
||||||
|
|
||||||
impl Player {
|
impl Player {
|
||||||
pub fn new(
|
pub fn new(
|
||||||
|
|
|
@ -6,10 +6,10 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use PlayerGMainContextSignalDispatcher;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib;
|
use glib;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
use PlayerGMainContextSignalDispatcher;
|
||||||
|
|
||||||
impl PlayerGMainContextSignalDispatcher {
|
impl PlayerGMainContextSignalDispatcher {
|
||||||
pub fn new<'a, P: Into<Option<&'a glib::MainContext>>>(
|
pub fn new<'a, P: Into<Option<&'a glib::MainContext>>>(
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use PlayerVideoInfo;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use gst;
|
use gst;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
|
use PlayerVideoInfo;
|
||||||
|
|
||||||
impl PlayerVideoInfo {
|
impl PlayerVideoInfo {
|
||||||
pub fn get_framerate(&self) -> gst::Fraction {
|
pub fn get_framerate(&self) -> gst::Fraction {
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use PlayerVideoOverlayVideoRenderer;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib::IsA;
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
use glib::IsA;
|
||||||
use gst;
|
use gst;
|
||||||
|
use PlayerVideoOverlayVideoRenderer;
|
||||||
|
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
use RTSPAddress;
|
|
||||||
use RTSPAddressPool;
|
|
||||||
use RTSPAddressPoolResult;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib::object::IsA;
|
use glib::object::IsA;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
use RTSPAddress;
|
||||||
|
use RTSPAddressPool;
|
||||||
|
use RTSPAddressPoolResult;
|
||||||
|
|
||||||
pub trait RTSPAddressPoolExtManual {
|
pub trait RTSPAddressPoolExtManual {
|
||||||
fn reserve_address(
|
fn reserve_address(
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
use RTSPAuth;
|
|
||||||
use RTSPToken;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib::object::IsA;
|
use glib::object::IsA;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
use RTSPAuth;
|
||||||
|
use RTSPToken;
|
||||||
|
|
||||||
pub trait RTSPAuthExtManual {
|
pub trait RTSPAuthExtManual {
|
||||||
fn set_default_token<'a, P: Into<Option<&'a mut RTSPToken>>>(&self, token: P);
|
fn set_default_token<'a, P: Into<Option<&'a mut RTSPToken>>>(&self, token: P);
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
use RTSPClient;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib;
|
use glib;
|
||||||
use glib::object::IsA;
|
use glib::object::IsA;
|
||||||
use glib::source::SourceId;
|
use glib::source::SourceId;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
use RTSPClient;
|
||||||
|
|
||||||
pub trait RTSPClientExtManual {
|
pub trait RTSPClientExtManual {
|
||||||
fn attach<'a, P: Into<Option<&'a glib::MainContext>>>(&self, context: P) -> SourceId;
|
fn attach<'a, P: Into<Option<&'a glib::MainContext>>>(&self, context: P) -> SourceId;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
use RTSPServer;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib;
|
use glib;
|
||||||
use glib::object::IsA;
|
use glib::object::IsA;
|
||||||
use glib::source::SourceId;
|
use glib::source::SourceId;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
use RTSPServer;
|
||||||
|
|
||||||
pub trait RTSPServerExtManual {
|
pub trait RTSPServerExtManual {
|
||||||
fn attach<'a, P: Into<Option<&'a glib::MainContext>>>(&self, context: P) -> SourceId;
|
fn attach<'a, P: Into<Option<&'a glib::MainContext>>>(&self, context: P) -> SourceId;
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
use RTSPSessionPool;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib;
|
use glib;
|
||||||
use glib::object::IsA;
|
use glib::object::IsA;
|
||||||
|
@ -8,6 +7,7 @@ use glib_ffi;
|
||||||
use glib_ffi::{gboolean, gpointer};
|
use glib_ffi::{gboolean, gpointer};
|
||||||
use std::cell::RefCell;
|
use std::cell::RefCell;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
use RTSPSessionPool;
|
||||||
|
|
||||||
unsafe extern "C" fn trampoline_watch(
|
unsafe extern "C" fn trampoline_watch(
|
||||||
pool: *mut ffi::GstRTSPSessionPool,
|
pool: *mut ffi::GstRTSPSessionPool,
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib;
|
use glib;
|
||||||
use glib::StaticType;
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use glib::value::ToSendValue;
|
use glib::value::ToSendValue;
|
||||||
|
use glib::StaticType;
|
||||||
use gst;
|
use gst;
|
||||||
use gst_ffi;
|
use gst_ffi;
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,8 @@
|
||||||
use ffi;
|
use ffi;
|
||||||
use gst_ffi;
|
use gst_ffi;
|
||||||
|
|
||||||
use glib::ToSendValue;
|
|
||||||
use glib::translate::{from_glib, from_glib_full, ToGlib};
|
use glib::translate::{from_glib, from_glib_full, ToGlib};
|
||||||
|
use glib::ToSendValue;
|
||||||
use gst;
|
use gst;
|
||||||
use gst::MiniObject;
|
use gst::MiniObject;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use VideoOverlay;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use libc::uintptr_t;
|
use libc::uintptr_t;
|
||||||
|
use VideoOverlay;
|
||||||
|
|
||||||
use glib::IsA;
|
use glib::IsA;
|
||||||
|
|
||||||
|
|
|
@ -6,12 +6,12 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use WebRTCSDPType;
|
|
||||||
use WebRTCSessionDescription;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use gst_sdp;
|
use gst_sdp;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
|
use WebRTCSDPType;
|
||||||
|
use WebRTCSessionDescription;
|
||||||
|
|
||||||
impl WebRTCSessionDescription {
|
impl WebRTCSessionDescription {
|
||||||
pub fn new(type_: WebRTCSDPType, mut sdp: gst_sdp::SDPMessage) -> WebRTCSessionDescription {
|
pub fn new(type_: WebRTCSDPType, mut sdp: gst_sdp::SDPMessage) -> WebRTCSessionDescription {
|
||||||
|
|
|
@ -10,8 +10,8 @@ use Bin;
|
||||||
use Element;
|
use Element;
|
||||||
|
|
||||||
use glib;
|
use glib;
|
||||||
use glib::IsA;
|
|
||||||
use glib::translate::{from_glib, from_glib_full, FromGlibPtrContainer, ToGlib, ToGlibPtr};
|
use glib::translate::{from_glib, from_glib_full, FromGlibPtrContainer, ToGlib, ToGlibPtr};
|
||||||
|
use glib::IsA;
|
||||||
|
|
||||||
use ffi;
|
use ffi;
|
||||||
|
|
||||||
|
|
|
@ -15,9 +15,9 @@ use std::slice;
|
||||||
use std::u64;
|
use std::u64;
|
||||||
use std::usize;
|
use std::usize;
|
||||||
|
|
||||||
|
use miniobject::*;
|
||||||
use BufferFlags;
|
use BufferFlags;
|
||||||
use ClockTime;
|
use ClockTime;
|
||||||
use miniobject::*;
|
|
||||||
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib;
|
use glib;
|
||||||
|
|
|
@ -10,8 +10,8 @@ use BufferPool;
|
||||||
use Structure;
|
use Structure;
|
||||||
|
|
||||||
use glib;
|
use glib;
|
||||||
use glib::IsA;
|
|
||||||
use glib::translate::{from_glib, from_glib_full, from_glib_none, ToGlib, ToGlibPtr, ToGlibPtrMut};
|
use glib::translate::{from_glib, from_glib_full, from_glib_none, ToGlib, ToGlibPtr, ToGlibPtrMut};
|
||||||
|
use glib::IsA;
|
||||||
|
|
||||||
use ffi;
|
use ffi;
|
||||||
|
|
||||||
|
|
|
@ -8,13 +8,13 @@
|
||||||
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib;
|
use glib;
|
||||||
use glib::StaticType;
|
|
||||||
use glib::translate::{from_glib, from_glib_full};
|
use glib::translate::{from_glib, from_glib_full};
|
||||||
|
use glib::StaticType;
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
|
||||||
|
use miniobject::*;
|
||||||
use Buffer;
|
use Buffer;
|
||||||
use BufferRef;
|
use BufferRef;
|
||||||
use miniobject::*;
|
|
||||||
|
|
||||||
pub type BufferList = GstRc<BufferListRef>;
|
pub type BufferList = GstRc<BufferListRef>;
|
||||||
pub struct BufferListRef(ffi::GstBufferList);
|
pub struct BufferListRef(ffi::GstBufferList);
|
||||||
|
|
|
@ -424,7 +424,7 @@ mod tests {
|
||||||
("bool", &true),
|
("bool", &true),
|
||||||
("string", &"bla"),
|
("string", &"bla"),
|
||||||
("fraction", &Fraction::new(1, 2)),
|
("fraction", &Fraction::new(1, 2)),
|
||||||
("array", &Array::new(&[&1, &2]))
|
("array", &Array::new(&[&1, &2])),
|
||||||
],
|
],
|
||||||
).as_ref()
|
).as_ref()
|
||||||
);
|
);
|
||||||
|
|
|
@ -6,12 +6,12 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use ChildProxy;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib;
|
use glib;
|
||||||
use glib::object::IsA;
|
use glib::object::IsA;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
use ChildProxy;
|
||||||
|
|
||||||
pub trait ChildProxyExtManual {
|
pub trait ChildProxyExtManual {
|
||||||
fn get_child_property(&self, name: &str) -> Option<glib::Value>;
|
fn get_child_property(&self, name: &str) -> Option<glib::Value>;
|
||||||
|
|
|
@ -6,15 +6,11 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use Clock;
|
|
||||||
use ClockReturn;
|
|
||||||
use ClockTime;
|
|
||||||
use ClockTimeDiff;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib;
|
use glib;
|
||||||
use glib::IsA;
|
|
||||||
use glib::source::CallbackGuard;
|
use glib::source::CallbackGuard;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
use glib::IsA;
|
||||||
use glib_ffi;
|
use glib_ffi;
|
||||||
use glib_ffi::{gboolean, gpointer};
|
use glib_ffi::{gboolean, gpointer};
|
||||||
use libc::c_void;
|
use libc::c_void;
|
||||||
|
@ -22,6 +18,10 @@ use std::cmp;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
use Clock;
|
||||||
|
use ClockReturn;
|
||||||
|
use ClockTime;
|
||||||
|
use ClockTimeDiff;
|
||||||
|
|
||||||
glib_wrapper! {
|
glib_wrapper! {
|
||||||
pub struct ClockId(Shared<c_void>);
|
pub struct ClockId(Shared<c_void>);
|
||||||
|
|
|
@ -12,11 +12,11 @@ use std::fmt;
|
||||||
use ffi;
|
use ffi;
|
||||||
|
|
||||||
use glib;
|
use glib;
|
||||||
use glib::StaticType;
|
|
||||||
use glib::translate::{from_glib, from_glib_full, ToGlib, ToGlibPtr};
|
use glib::translate::{from_glib, from_glib_full, ToGlib, ToGlibPtr};
|
||||||
|
use glib::StaticType;
|
||||||
|
|
||||||
use StructureRef;
|
|
||||||
use miniobject::*;
|
use miniobject::*;
|
||||||
|
use StructureRef;
|
||||||
|
|
||||||
pub type Context = GstRc<ContextRef>;
|
pub type Context = GstRc<ContextRef>;
|
||||||
pub struct ContextRef(ffi::GstContext);
|
pub struct ContextRef(ffi::GstContext);
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use DateTime;
|
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
use DateTime;
|
||||||
|
|
||||||
impl fmt::Display for DateTime {
|
impl fmt::Display for DateTime {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
|
|
||||||
use DeviceProvider;
|
use DeviceProvider;
|
||||||
|
|
||||||
use glib::IsA;
|
|
||||||
use glib::translate::ToGlibPtr;
|
use glib::translate::ToGlibPtr;
|
||||||
|
use glib::IsA;
|
||||||
|
|
||||||
use std::ffi::CStr;
|
use std::ffi::CStr;
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,15 @@
|
||||||
|
|
||||||
use Element;
|
use Element;
|
||||||
|
|
||||||
|
use glib;
|
||||||
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
|
use glib::object::Downcast;
|
||||||
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
|
use glib::translate::FromGlibPtrBorrow;
|
||||||
|
use glib::translate::{from_glib, from_glib_full, from_glib_none, FromGlib, FromGlibPtrContainer,
|
||||||
|
ToGlib, ToGlibPtr};
|
||||||
|
use glib::IsA;
|
||||||
|
use miniobject::MiniObject;
|
||||||
use Event;
|
use Event;
|
||||||
use Format;
|
use Format;
|
||||||
use FormattedValue;
|
use FormattedValue;
|
||||||
|
@ -16,15 +25,6 @@ use Pad;
|
||||||
use PadTemplate;
|
use PadTemplate;
|
||||||
use QueryRef;
|
use QueryRef;
|
||||||
use SpecificFormattedValue;
|
use SpecificFormattedValue;
|
||||||
use glib;
|
|
||||||
use glib::IsA;
|
|
||||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
|
||||||
use glib::object::Downcast;
|
|
||||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
|
||||||
use glib::translate::FromGlibPtrBorrow;
|
|
||||||
use glib::translate::{from_glib, from_glib_full, from_glib_none, FromGlib, FromGlibPtrContainer,
|
|
||||||
ToGlib, ToGlibPtr};
|
|
||||||
use miniobject::MiniObject;
|
|
||||||
|
|
||||||
use std::ffi::CStr;
|
use std::ffi::CStr;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
|
|
|
@ -6,13 +6,13 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use std::cmp;
|
||||||
|
use std::error::Error;
|
||||||
|
use std::fmt;
|
||||||
use ClockReturn;
|
use ClockReturn;
|
||||||
use FlowReturn;
|
use FlowReturn;
|
||||||
use PadLinkReturn;
|
use PadLinkReturn;
|
||||||
use StateChangeReturn;
|
use StateChangeReturn;
|
||||||
use std::cmp;
|
|
||||||
use std::error::Error;
|
|
||||||
use std::fmt;
|
|
||||||
|
|
||||||
use glib::translate::ToGlib;
|
use glib::translate::ToGlib;
|
||||||
|
|
||||||
|
|
|
@ -6,10 +6,10 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use GenericFormattedValue;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use miniobject::*;
|
use miniobject::*;
|
||||||
use structure::*;
|
use structure::*;
|
||||||
|
use GenericFormattedValue;
|
||||||
|
|
||||||
use std::cmp;
|
use std::cmp;
|
||||||
use std::ffi::CStr;
|
use std::ffi::CStr;
|
||||||
|
|
|
@ -6,10 +6,10 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use ClockTime;
|
|
||||||
use Format;
|
|
||||||
use muldiv::MulDiv;
|
use muldiv::MulDiv;
|
||||||
use std::ops;
|
use std::ops;
|
||||||
|
use ClockTime;
|
||||||
|
use Format;
|
||||||
|
|
||||||
#[derive(PartialEq, Eq, Hash, Clone, Copy, Debug)]
|
#[derive(PartialEq, Eq, Hash, Clone, Copy, Debug)]
|
||||||
pub enum GenericFormattedValue {
|
pub enum GenericFormattedValue {
|
||||||
|
|
|
@ -6,15 +6,15 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use ffi;
|
||||||
|
use glib::object::Downcast;
|
||||||
|
use glib::object::IsA;
|
||||||
|
use glib::translate::*;
|
||||||
use GhostPad;
|
use GhostPad;
|
||||||
use Object;
|
use Object;
|
||||||
use Pad;
|
use Pad;
|
||||||
use PadMode;
|
use PadMode;
|
||||||
use PadTemplate;
|
use PadTemplate;
|
||||||
use ffi;
|
|
||||||
use glib::object::Downcast;
|
|
||||||
use glib::object::IsA;
|
|
||||||
use glib::translate::*;
|
|
||||||
|
|
||||||
impl GhostPad {
|
impl GhostPad {
|
||||||
pub fn new<'a, P: Into<Option<&'a str>>, Q: IsA<Pad>>(name: P, target: &Q) -> Option<GhostPad> {
|
pub fn new<'a, P: Into<Option<&'a str>>, Q: IsA<Pad>>(name: P, target: &Q) -> Option<GhostPad> {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use glib;
|
use glib;
|
||||||
use glib::IsA;
|
|
||||||
use glib::translate::ToGlibPtr;
|
use glib::translate::ToGlibPtr;
|
||||||
|
use glib::IsA;
|
||||||
|
|
||||||
use ffi;
|
use ffi;
|
||||||
|
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib;
|
use glib;
|
||||||
use glib::StaticType;
|
|
||||||
use glib::Value;
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use glib::value::{FromValueOptional, ToValue};
|
use glib::value::{FromValueOptional, ToValue};
|
||||||
|
use glib::StaticType;
|
||||||
|
use glib::Value;
|
||||||
use glib_ffi;
|
use glib_ffi;
|
||||||
use glib_ffi::{gconstpointer, gpointer};
|
use glib_ffi::{gconstpointer, gpointer};
|
||||||
use gobject_ffi;
|
use gobject_ffi;
|
||||||
|
|
|
@ -133,9 +133,9 @@ mod parse_context;
|
||||||
mod proxy_pad;
|
mod proxy_pad;
|
||||||
mod tag_setter;
|
mod tag_setter;
|
||||||
pub use bin::BinExtManual;
|
pub use bin::BinExtManual;
|
||||||
|
pub use element::{ElementExtManual, ElementMessageType, NotifyWatchId};
|
||||||
pub use element::{ELEMENT_METADATA_AUTHOR, ELEMENT_METADATA_DESCRIPTION, ELEMENT_METADATA_DOC_URI,
|
pub use element::{ELEMENT_METADATA_AUTHOR, ELEMENT_METADATA_DESCRIPTION, ELEMENT_METADATA_DOC_URI,
|
||||||
ELEMENT_METADATA_ICON_NAME, ELEMENT_METADATA_KLASS, ELEMENT_METADATA_LONGNAME};
|
ELEMENT_METADATA_ICON_NAME, ELEMENT_METADATA_KLASS, ELEMENT_METADATA_LONGNAME};
|
||||||
pub use element::{ElementExtManual, ElementMessageType, NotifyWatchId};
|
|
||||||
pub use object::GstObjectExtManual;
|
pub use object::GstObjectExtManual;
|
||||||
|
|
||||||
// OS dependent Bus extensions (also import the other plateform trait for doc)
|
// OS dependent Bus extensions (also import the other plateform trait for doc)
|
||||||
|
|
|
@ -15,8 +15,8 @@ use std::ptr;
|
||||||
use ffi;
|
use ffi;
|
||||||
use gobject_ffi;
|
use gobject_ffi;
|
||||||
|
|
||||||
use glib::IsA;
|
|
||||||
use glib::translate::{from_glib, ToGlib, ToGlibPtr};
|
use glib::translate::{from_glib, ToGlib, ToGlibPtr};
|
||||||
|
use glib::IsA;
|
||||||
|
|
||||||
#[derive(PartialEq, Eq, Clone, Copy)]
|
#[derive(PartialEq, Eq, Clone, Copy)]
|
||||||
pub struct DebugCategory(ptr::NonNull<ffi::GstDebugCategory>);
|
pub struct DebugCategory(ptr::NonNull<ffi::GstDebugCategory>);
|
||||||
|
|
|
@ -6,15 +6,15 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use ffi;
|
||||||
|
use miniobject::*;
|
||||||
|
use structure::*;
|
||||||
use GenericFormattedValue;
|
use GenericFormattedValue;
|
||||||
use GroupId;
|
use GroupId;
|
||||||
use GstObjectExt;
|
use GstObjectExt;
|
||||||
use Object;
|
use Object;
|
||||||
use Seqnum;
|
use Seqnum;
|
||||||
use TagList;
|
use TagList;
|
||||||
use ffi;
|
|
||||||
use miniobject::*;
|
|
||||||
use structure::*;
|
|
||||||
|
|
||||||
use std::ffi::CStr;
|
use std::ffi::CStr;
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
@ -23,10 +23,10 @@ use std::ops::Deref;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
use glib;
|
use glib;
|
||||||
use glib::Cast;
|
|
||||||
use glib::IsA;
|
|
||||||
use glib::translate::{from_glib, from_glib_full, from_glib_none, mut_override, ToGlib, ToGlibPtr};
|
use glib::translate::{from_glib, from_glib_full, from_glib_none, mut_override, ToGlib, ToGlibPtr};
|
||||||
use glib::value::ToSendValue;
|
use glib::value::ToSendValue;
|
||||||
|
use glib::Cast;
|
||||||
|
use glib::IsA;
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct MessageRef(ffi::GstMessage);
|
pub struct MessageRef(ffi::GstMessage);
|
||||||
|
|
|
@ -7,10 +7,10 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use glib;
|
use glib;
|
||||||
use glib::IsA;
|
|
||||||
use glib::object::{Downcast, ObjectExt};
|
use glib::object::{Downcast, ObjectExt};
|
||||||
use glib::signal::SignalHandlerId;
|
use glib::signal::SignalHandlerId;
|
||||||
use glib::translate::ToGlibPtr;
|
use glib::translate::ToGlibPtr;
|
||||||
|
use glib::IsA;
|
||||||
|
|
||||||
use gobject_ffi;
|
use gobject_ffi;
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use miniobject::MiniObject;
|
||||||
use Buffer;
|
use Buffer;
|
||||||
use BufferList;
|
use BufferList;
|
||||||
use Event;
|
use Event;
|
||||||
|
@ -20,7 +21,6 @@ use Query;
|
||||||
use QueryRef;
|
use QueryRef;
|
||||||
use SpecificFormattedValue;
|
use SpecificFormattedValue;
|
||||||
use StaticPadTemplate;
|
use StaticPadTemplate;
|
||||||
use miniobject::MiniObject;
|
|
||||||
|
|
||||||
use std::cell::RefCell;
|
use std::cell::RefCell;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
|
@ -28,10 +28,10 @@ use std::mem::transmute;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
use glib;
|
use glib;
|
||||||
use glib::Object;
|
|
||||||
use glib::source::CallbackGuard;
|
use glib::source::CallbackGuard;
|
||||||
use glib::translate::{from_glib, from_glib_borrow, from_glib_full, from_glib_none, mut_override,
|
use glib::translate::{from_glib, from_glib_borrow, from_glib_full, from_glib_none, mut_override,
|
||||||
FromGlib, ToGlib, ToGlibPtr};
|
FromGlib, ToGlib, ToGlibPtr};
|
||||||
|
use glib::Object;
|
||||||
use glib::{IsA, StaticType};
|
use glib::{IsA, StaticType};
|
||||||
use glib_ffi;
|
use glib_ffi;
|
||||||
use glib_ffi::gpointer;
|
use glib_ffi::gpointer;
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||||
|
use glib::translate::*;
|
||||||
use PadTemplate;
|
use PadTemplate;
|
||||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||||
use StaticPadTemplate;
|
use StaticPadTemplate;
|
||||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
|
||||||
use glib::translate::*;
|
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||||
use ffi;
|
use ffi;
|
||||||
|
|
|
@ -6,10 +6,10 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use ffi;
|
||||||
use Plugin;
|
use Plugin;
|
||||||
use Structure;
|
use Structure;
|
||||||
use StructureRef;
|
use StructureRef;
|
||||||
use ffi;
|
|
||||||
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
|
|
|
@ -6,15 +6,15 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use PromiseResult;
|
|
||||||
use Structure;
|
|
||||||
use StructureRef;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use glib_ffi;
|
use glib_ffi;
|
||||||
use gobject_ffi;
|
use gobject_ffi;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
use PromiseResult;
|
||||||
|
use Structure;
|
||||||
|
use StructureRef;
|
||||||
|
|
||||||
glib_wrapper! {
|
glib_wrapper! {
|
||||||
pub struct Promise(Shared<ffi::GstPromise>);
|
pub struct Promise(Shared<ffi::GstPromise>);
|
||||||
|
|
|
@ -6,16 +6,16 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use std::ptr;
|
||||||
use Buffer;
|
use Buffer;
|
||||||
use BufferList;
|
use BufferList;
|
||||||
use FlowReturn;
|
use FlowReturn;
|
||||||
use Object;
|
use Object;
|
||||||
use Pad;
|
use Pad;
|
||||||
use ProxyPad;
|
use ProxyPad;
|
||||||
use std::ptr;
|
|
||||||
|
|
||||||
use glib::IsA;
|
|
||||||
use glib::translate::{from_glib, from_glib_full, ToGlibPtr};
|
use glib::translate::{from_glib, from_glib_full, ToGlibPtr};
|
||||||
|
use glib::IsA;
|
||||||
|
|
||||||
use ffi;
|
use ffi;
|
||||||
|
|
||||||
|
|
|
@ -6,10 +6,10 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use GenericFormattedValue;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use miniobject::*;
|
use miniobject::*;
|
||||||
use structure::*;
|
use structure::*;
|
||||||
|
use GenericFormattedValue;
|
||||||
|
|
||||||
use std::ffi::CStr;
|
use std::ffi::CStr;
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
|
|
@ -12,9 +12,10 @@ use std::ptr;
|
||||||
use ffi;
|
use ffi;
|
||||||
|
|
||||||
use glib;
|
use glib;
|
||||||
use glib::StaticType;
|
|
||||||
use glib::translate::{from_glib, from_glib_full, from_glib_none, mut_override, ToGlibPtr};
|
use glib::translate::{from_glib, from_glib_full, from_glib_none, mut_override, ToGlibPtr};
|
||||||
|
use glib::StaticType;
|
||||||
|
|
||||||
|
use miniobject::*;
|
||||||
use Buffer;
|
use Buffer;
|
||||||
use BufferList;
|
use BufferList;
|
||||||
use Caps;
|
use Caps;
|
||||||
|
@ -22,7 +23,6 @@ use FormattedSegment;
|
||||||
use FormattedValue;
|
use FormattedValue;
|
||||||
use Segment;
|
use Segment;
|
||||||
use StructureRef;
|
use StructureRef;
|
||||||
use miniobject::*;
|
|
||||||
|
|
||||||
pub type Sample = GstRc<SampleRef>;
|
pub type Sample = GstRc<SampleRef>;
|
||||||
pub struct SampleRef(ffi::GstSample);
|
pub struct SampleRef(ffi::GstSample);
|
||||||
|
|
|
@ -6,11 +6,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use Format;
|
|
||||||
use FormattedValue;
|
|
||||||
use GenericFormattedValue;
|
|
||||||
use SeekFlags;
|
|
||||||
use SeekType;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib;
|
use glib;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
@ -20,6 +15,11 @@ use std::fmt;
|
||||||
use std::marker::PhantomData;
|
use std::marker::PhantomData;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
use Format;
|
||||||
|
use FormattedValue;
|
||||||
|
use GenericFormattedValue;
|
||||||
|
use SeekFlags;
|
||||||
|
use SeekType;
|
||||||
|
|
||||||
pub type Segment = FormattedSegment<GenericFormattedValue>;
|
pub type Segment = FormattedSegment<GenericFormattedValue>;
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
|
|
|
@ -6,13 +6,13 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use TagMergeMode;
|
|
||||||
use TagSetter;
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib::object::IsA;
|
use glib::object::IsA;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use glib::value::ToSendValue;
|
use glib::value::ToSendValue;
|
||||||
use tags::*;
|
use tags::*;
|
||||||
|
use TagMergeMode;
|
||||||
|
use TagSetter;
|
||||||
|
|
||||||
pub trait TagSetterExtManual {
|
pub trait TagSetterExtManual {
|
||||||
fn add<'a, T: Tag<'a>>(&self, value: T::TagType, mode: TagMergeMode)
|
fn add<'a, T: Tag<'a>>(&self, value: T::TagType, mode: TagMergeMode)
|
||||||
|
|
|
@ -13,9 +13,9 @@ use std::mem;
|
||||||
|
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib;
|
use glib;
|
||||||
use glib::StaticType;
|
|
||||||
use glib::translate::{from_glib, from_glib_full, ToGlib, ToGlibPtr, ToGlibPtrMut};
|
use glib::translate::{from_glib, from_glib_full, ToGlib, ToGlibPtr, ToGlibPtrMut};
|
||||||
use glib::value::{FromValueOptional, SetValue, ToSendValue, TypedValue, Value};
|
use glib::value::{FromValueOptional, SetValue, ToSendValue, TypedValue, Value};
|
||||||
|
use glib::StaticType;
|
||||||
|
|
||||||
use miniobject::*;
|
use miniobject::*;
|
||||||
|
|
||||||
|
|
|
@ -16,12 +16,12 @@ use glib;
|
||||||
use glib::translate::{from_glib, from_glib_full, from_glib_none, FromGlibPtrContainer, ToGlib,
|
use glib::translate::{from_glib, from_glib_full, from_glib_none, FromGlibPtrContainer, ToGlib,
|
||||||
ToGlibPtr};
|
ToGlibPtr};
|
||||||
|
|
||||||
|
use miniobject::*;
|
||||||
use TagList;
|
use TagList;
|
||||||
use TagMergeMode;
|
use TagMergeMode;
|
||||||
use TocEntryType;
|
use TocEntryType;
|
||||||
use TocLoopType;
|
use TocLoopType;
|
||||||
use TocScope;
|
use TocScope;
|
||||||
use miniobject::*;
|
|
||||||
|
|
||||||
pub type Toc = GstRc<TocRef>;
|
pub type Toc = GstRc<TocRef>;
|
||||||
pub struct TocRef(ffi::GstToc);
|
pub struct TocRef(ffi::GstToc);
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
use ffi;
|
||||||
use Caps;
|
use Caps;
|
||||||
use Plugin;
|
use Plugin;
|
||||||
use TypeFindFactory;
|
use TypeFindFactory;
|
||||||
use TypeFindProbability;
|
use TypeFindProbability;
|
||||||
use ffi;
|
|
||||||
|
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use glib_ffi;
|
use glib_ffi;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
extern crate gstreamer as gst;
|
extern crate gstreamer as gst;
|
||||||
use gst::MessageView;
|
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
|
use gst::MessageView;
|
||||||
use std::io;
|
use std::io;
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
extern crate gstreamer as gst;
|
extern crate gstreamer as gst;
|
||||||
use gst::MessageView;
|
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
|
use gst::MessageView;
|
||||||
|
|
||||||
#[path = "../tutorials-common.rs"]
|
#[path = "../tutorials-common.rs"]
|
||||||
mod tutorials_common;
|
mod tutorials_common;
|
||||||
|
|
Loading…
Reference in a new issue