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
b28664ccbd
commit
310ff531fb
2 changed files with 2 additions and 2 deletions
|
@ -411,7 +411,7 @@ impl<T: BaseSrcImpl> BaseSrcImplExt for T {
|
||||||
|
|
||||||
if let Some(passed_buffer) = buffer {
|
if let Some(passed_buffer) = buffer {
|
||||||
if buffer_ptr != orig_buffer_ptr {
|
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::debug!(
|
||||||
gst::CAT_PERFORMANCE,
|
gst::CAT_PERFORMANCE,
|
||||||
|
|
|
@ -152,7 +152,7 @@ impl<T: PushSrcImpl> PushSrcImplExt for T {
|
||||||
|
|
||||||
if let Some(passed_buffer) = buffer {
|
if let Some(passed_buffer) = buffer {
|
||||||
if buffer_ptr != orig_buffer_ptr {
|
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::debug!(
|
||||||
gst::CAT_PERFORMANCE,
|
gst::CAT_PERFORMANCE,
|
||||||
|
|
Loading…
Reference in a new issue