forked from mirrors/gstreamer-rs
Add constants for COPY_ALL and COPY_METADATA buffer copy flags
This commit is contained in:
parent
fa05ee7b08
commit
7065d1d884
2 changed files with 6 additions and 1 deletions
|
@ -574,6 +574,11 @@ impl<T> Eq for MappedBuffer<T> {}
|
||||||
|
|
||||||
unsafe impl<T> Send for MappedBuffer<T> {}
|
unsafe impl<T> Send for MappedBuffer<T> {}
|
||||||
|
|
||||||
|
lazy_static! {
|
||||||
|
pub static ref BUFFER_COPY_METADATA: ::BufferCopyFlags = ::BufferCopyFlags::FLAGS | ::BufferCopyFlags::TIMESTAMPS | ::BufferCopyFlags::META;
|
||||||
|
pub static ref BUFFER_COPY_ALL: ::BufferCopyFlags = *BUFFER_COPY_METADATA | ::BufferCopyFlags::MEMORY;
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
|
@ -74,7 +74,7 @@ pub use caps::{Caps, CapsRef};
|
||||||
pub mod tags;
|
pub mod tags;
|
||||||
pub use tags::{Tag, TagList, TagListRef};
|
pub use tags::{Tag, TagList, TagListRef};
|
||||||
pub mod buffer;
|
pub mod buffer;
|
||||||
pub use buffer::{Buffer, BufferMap, BufferRef, MappedBuffer};
|
pub use buffer::{Buffer, BufferMap, BufferRef, MappedBuffer, BUFFER_COPY_METADATA, BUFFER_COPY_ALL};
|
||||||
pub mod sample;
|
pub mod sample;
|
||||||
pub use sample::{Sample, SampleRef};
|
pub use sample::{Sample, SampleRef};
|
||||||
pub mod bufferlist;
|
pub mod bufferlist;
|
||||||
|
|
Loading…
Reference in a new issue