mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-05 18:22:23 +00:00
avenc: don't leak frames
This commit is contained in:
parent
d96cffb10a
commit
932bd7f79e
1 changed files with 2 additions and 0 deletions
|
@ -710,6 +710,8 @@ gst_ffmpegvidenc_handle_frame (GstVideoEncoder * encoder,
|
||||||
(("Could not write to file \"%s\"."), ffmpegenc->filename),
|
(("Could not write to file \"%s\"."), ffmpegenc->filename),
|
||||||
GST_ERROR_SYSTEM);
|
GST_ERROR_SYSTEM);
|
||||||
|
|
||||||
|
gst_video_codec_frame_unref (frame);
|
||||||
|
|
||||||
/* Get oldest frame */
|
/* Get oldest frame */
|
||||||
frame = gst_video_encoder_get_oldest_frame (encoder);
|
frame = gst_video_encoder_get_oldest_frame (encoder);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue