mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
basevideocodec: fully free video frame
This commit is contained in:
parent
a085acb586
commit
04f4a583dd
2 changed files with 6 additions and 0 deletions
|
@ -178,5 +178,9 @@ gst_base_video_codec_free_frame (GstVideoFrame * frame)
|
|||
gst_buffer_unref (frame->sink_buffer);
|
||||
}
|
||||
|
||||
if (frame->src_buffer) {
|
||||
gst_buffer_unref (frame->src_buffer);
|
||||
}
|
||||
|
||||
g_free (frame);
|
||||
}
|
||||
|
|
|
@ -833,6 +833,8 @@ gst_base_video_encoder_finish_frame (GstBaseVideoEncoder * base_video_encoder,
|
|||
frame->src_buffer);
|
||||
}
|
||||
|
||||
/* handed out */
|
||||
frame->src_buffer = NULL;
|
||||
gst_base_video_codec_free_frame (frame);
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue