mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-04-15 04:14:07 +00:00
gstreamer: Implement Default for BufferPoolAcquireParams
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1684>
This commit is contained in:
parent
5657104996
commit
06f9235add
1 changed files with 12 additions and 0 deletions
|
@ -332,6 +332,18 @@ impl PartialEq 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)]
|
||||
impl<'a> ToGlibPtr<'a, *const ffi::GstBufferPoolAcquireParams> for BufferPoolAcquireParams {
|
||||
type Storage = PhantomData<&'a Self>;
|
||||
|
|
Loading…
Reference in a new issue