mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-23 00:26:31 +00:00
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