mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 05:12:09 +00:00
x264enc: gst_video_encoder_get_frame() is now transfer full
This commit is contained in:
parent
31b5e86ebd
commit
6e920bc4aa
1 changed files with 3 additions and 1 deletions
|
@ -1716,8 +1716,10 @@ gst_x264_enc_encode_frame (GstX264Enc * encoder, x264_picture_t * pic_in,
|
||||||
}
|
}
|
||||||
|
|
||||||
out:
|
out:
|
||||||
if (frame)
|
if (frame) {
|
||||||
gst_video_encoder_finish_frame (GST_VIDEO_ENCODER (encoder), frame);
|
gst_video_encoder_finish_frame (GST_VIDEO_ENCODER (encoder), frame);
|
||||||
|
gst_video_codec_frame_unref (frame);
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue