mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-02-16 19:15:30 +00:00
Add bufferlist support to Sample
This commit is contained in:
parent
a0c6db70e0
commit
ed90fcbd10
1 changed files with 4 additions and 1 deletions
|
@ -16,6 +16,7 @@ use glib::translate::{from_glib, from_glib_full, from_glib_none, mut_override, T
|
||||||
|
|
||||||
use miniobject::*;
|
use miniobject::*;
|
||||||
use Buffer;
|
use Buffer;
|
||||||
|
use BufferList;
|
||||||
use Caps;
|
use Caps;
|
||||||
use Segment;
|
use Segment;
|
||||||
use StructureRef;
|
use StructureRef;
|
||||||
|
@ -53,7 +54,9 @@ impl SampleRef {
|
||||||
unsafe { from_glib_none(ffi::gst_sample_get_buffer(self.as_mut_ptr())) }
|
unsafe { from_glib_none(ffi::gst_sample_get_buffer(self.as_mut_ptr())) }
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: bufferlist
|
pub fn get_buffer_list(&self) -> Option<BufferList> {
|
||||||
|
unsafe { from_glib_none(ffi::gst_sample_get_buffer_list(self.as_mut_ptr())) }
|
||||||
|
}
|
||||||
|
|
||||||
pub fn get_caps(&self) -> Option<Caps> {
|
pub fn get_caps(&self) -> Option<Caps> {
|
||||||
unsafe { from_glib_none(ffi::gst_sample_get_caps(self.as_mut_ptr())) }
|
unsafe { from_glib_none(ffi::gst_sample_get_caps(self.as_mut_ptr())) }
|
||||||
|
|
Loading…
Reference in a new issue