mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-09-02 18:03:50 +00:00
gstreamer: Implement Default for BufferPoolAcquireParams
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1680>
This commit is contained in:
parent
09a85251e9
commit
ca0c7b8bfc
1 changed files with 12 additions and 0 deletions
|
@ -334,6 +334,18 @@ impl PartialEq for BufferPoolAcquireParams {
|
||||||
|
|
||||||
impl Eq for BufferPoolAcquireParams {}
|
impl Eq for BufferPoolAcquireParams {}
|
||||||
|
|
||||||
|
impl Default for BufferPoolAcquireParams {
|
||||||
|
fn default() -> Self {
|
||||||
|
Self(ffi::GstBufferPoolAcquireParams {
|
||||||
|
format: ffi::GST_FORMAT_UNDEFINED,
|
||||||
|
start: -1,
|
||||||
|
stop: -1,
|
||||||
|
flags: ffi::GST_BUFFER_POOL_ACQUIRE_FLAG_NONE,
|
||||||
|
_gst_reserved: [ptr::null_mut(); 4],
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
impl<'a> ToGlibPtr<'a, *const ffi::GstBufferPoolAcquireParams> for BufferPoolAcquireParams {
|
impl<'a> ToGlibPtr<'a, *const ffi::GstBufferPoolAcquireParams> for BufferPoolAcquireParams {
|
||||||
type Storage = PhantomData<&'a Self>;
|
type Storage = PhantomData<&'a Self>;
|
||||||
|
|
Loading…
Reference in a new issue