mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
gstreamer: Don't leak all video frames
This commit is contained in:
parent
ff911c76c0
commit
7652026f0d
1 changed files with 1 additions and 0 deletions
|
@ -758,6 +758,7 @@ gst_svtav1enc_handle_frame (GstVideoEncoder * encoder,
|
|||
GST_DEBUG_OBJECT (svtav1enc, "handle_frame");
|
||||
|
||||
ret = gst_svtav1enc_encode (svtav1enc, frame);
|
||||
gst_video_codec_frame_unref (frame);
|
||||
if (ret != GST_FLOW_OK) {
|
||||
GST_DEBUG_OBJECT (svtav1enc, "gst_svtav1enc_encode returned %d", ret);
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue