mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
omxvideoenc: Don't forget to unref codec state
CID 1214603
This commit is contained in:
parent
e542177c65
commit
34577a965d
1 changed files with 1 additions and 0 deletions
|
@ -568,6 +568,7 @@ gst_omx_video_enc_handle_output_frame (GstOMXVideoEnc * self, GstOMXPort * port,
|
||||||
gst_video_encoder_set_output_state (GST_VIDEO_ENCODER (self), caps,
|
gst_video_encoder_set_output_state (GST_VIDEO_ENCODER (self), caps,
|
||||||
self->input_state);
|
self->input_state);
|
||||||
state->codec_data = codec_data;
|
state->codec_data = codec_data;
|
||||||
|
gst_video_codec_state_unref (state);
|
||||||
if (!gst_video_encoder_negotiate (GST_VIDEO_ENCODER (self))) {
|
if (!gst_video_encoder_negotiate (GST_VIDEO_ENCODER (self))) {
|
||||||
gst_video_codec_frame_unref (frame);
|
gst_video_codec_frame_unref (frame);
|
||||||
return GST_FLOW_NOT_NEGOTIATED;
|
return GST_FLOW_NOT_NEGOTIATED;
|
||||||
|
|
Loading…
Reference in a new issue