base: Fix memory leak if BaseSrc/PushSrc parent class is not filling the provided buffer as it should

This commit is contained in:
Sebastian Dröge 2022-06-24 10:23:27 +03:00
parent b28664ccbd
commit 310ff531fb
2 changed files with 2 additions and 2 deletions

View file

@ -411,7 +411,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,

View file

@ -152,7 +152,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,