forked from mirrors/gstreamer-rs
base: Fix memory leak if BaseSrc/PushSrc parent class is not filling the provided buffer as it should
This commit is contained in:
parent
62a2ad8a1e
commit
7873a426d4
2 changed files with 2 additions and 2 deletions
|
@ -414,7 +414,7 @@ impl<T: BaseSrcImpl> BaseSrcImplExt for T {
|
|||
|
||||
if let Some(passed_buffer) = buffer {
|
||||
if buffer_ptr != orig_buffer_ptr {
|
||||
let new_buffer = gst::BufferRef::from_ptr(buffer_ptr);
|
||||
let new_buffer = gst::Buffer::from_glib_full(buffer_ptr);
|
||||
|
||||
gst_debug!(
|
||||
gst::CAT_PERFORMANCE,
|
||||
|
|
|
@ -154,7 +154,7 @@ impl<T: PushSrcImpl> PushSrcImplExt for T {
|
|||
|
||||
if let Some(passed_buffer) = buffer {
|
||||
if buffer_ptr != orig_buffer_ptr {
|
||||
let new_buffer = gst::BufferRef::from_ptr(buffer_ptr);
|
||||
let new_buffer = gst::Buffer::from_glib_full(buffer_ptr);
|
||||
|
||||
gst_debug!(
|
||||
gst::CAT_PERFORMANCE,
|
||||
|
|
Loading…
Reference in a new issue